Hi, I’ve been wrestling with this for a few hours now and finally decided to seek help.
Has anyone successfully used a contenteditable DIV and found a way to allow the user to insert text/html at the position of the cursor? All I need to do I believe is be able to figure out the caret/cursor position at the point the user presses the ‘insert picture’ button but clicking the button is taking focus away from the div and I’m losing the ability to figure out where the caret was.
If you want to see a similar functionality, you can just look at how gmail on iOS does it… Wherever you leave the cursor when you press the ‘paperclip’ is where the image is inserted.
I would very much appreciate any pointers or suggestions.
I’m working in ionic3 and the latest versions of all relevant components.
Thanks very much,