Hi all,
I've searched for this for quite a long time, but I've not found how to do this.
I'm developing a plugin which inserts text into the textbox. But this text would be "metacharacters" for a filter, so I want them to behave differently.
Let's say we have the following on the textbox:
<span class="mytext">text inserted by the plugin</span> other text
For example, if I click anywhere inside that span, I would like to select the whole span.
In "plain" JavaScript, we would probably do:
<span class="mytext" onClick="myFunction()">text inserted by the plugin</span> other text
And then myFunction() would do whatever it is supposed to do to select that span.
But I don't know how to approach this for an Atto plugin.
Any help would be greatly appreciated.
Best regards,
Julen