I’m using the Text Selection plugin by Airdev to display a tooltip inside a rich text editor whenever the user selects a text. The only problem is, the plugin will detect ANY selected text on the page, not just inside the rich text editor.
As you can see when selecting the text on the right, the tooltip still appears.
Is there a way to limit this to only detecting selected text inside the rich text field? With or without this plugin.
I was successful in achieving this by creating a reusable element that has the rich text editor and the Text Selection (plugin) element inside it, and by doing this it will only detect selected text inside the reusable element and not the whole page. But for the app I’m building I can’t place the rich text field inside a reusable element. So looking for alternative solutions.
Everything works fine now except for the positioning of the tooltip. Instead of appearing next to my cursor, it appears at the top-left corner of the page (which is the default positioning of the floating group in bubble). Is bubble’s styling overriding my own, or is there an issue with my code?