bonafideduck/react-highlight-within-textarea

Clickable?

Closed this issue · 3 comments

k2xl commented

Feature request - be able to click on highlighted text (call a handler with the text clicked on passed in)

This can be accomplished. See “Custom Object with Enhancements” on the demo page.

Unfortunately with the current design, the highlighting is behind the textarea and the only way to get informed is to have a z-index raising a clear box above. But then mouse clicking to edit wont work.

@k2xl, I have a preview of 2.0.0-alpha.8 available with sample code that should fix this. It is published to NPM.

Version 2.0.0 should fix this.