Help adding text at caret

Hi everyone,

I’m looking to add a bit of functionality to my text editor.

I have a text editor and I have some images. When the images are clicked I’d like it to add the text that corresponds with that image to the text editor at the caret. I’ve tried figuring this out with javascript but it’s not my strong suite so I’m yet to figure out how.

I’m using the new bubble rich text editor and using the shape element for the images if that is any help.

Thanks in advance.

This topic was automatically closed after 70 days. New replies are no longer allowed.