Chrome Extension contenteditable get and set caret position
- by jwize
I am creating an extension where I need to insert a link into the gmail window. I am able to create a simple extension button in the top of the window and execute code that does replaces all the links.
Now, I want to do add links in the contenteditable section as I type. It seems like there should be a simple way to replace text with a link in…