mindmup / bootstrap-wysiwyg

Tiny bootstrap-compatible WISWYG rich text editor
MIT License
5.56k stars 841 forks source link

Is there any way to get/set the cursor position within the text editor? #105

Open azaslavsky opened 11 years ago

azaslavsky commented 11 years ago

I'd like to somehow retrieve the cursor position/what the user has just highlighted. Is that possible?

azaslavsky commented 11 years ago

Not an ideal solution, but the workaround I've been using utilizes the window.getSelection() object:

https://developer.mozilla.org/en-US/docs/Web/API/window.getSelection

alisson04 commented 6 years ago

Did you find the solution?