4

How can I trigger an event on text selection on tinymce? The onselect event does not work. Is there a specific event for this?

Do I have to use mouse down, mouse move and mouse up instead?

I have been searching all over for this but no event seems to exist that just triggers a selection on text.

Thanks

Bernice
  • 2,552
  • 11
  • 42
  • 74
  • Perhaps these links will help > http://stackoverflow.com/questions/4712310/javascript-how-to-detect-if-a-word-is-highlighted http://stackoverflow.com/questions/5359451/detect-selected-text-in-a-text-area-with-javascript – BenM Mar 29 '13 at 13:52
  • yeah saw those but they don't work on tinyMCE. It has a separate selection which indicates the position of the caret on the document – Bernice Mar 29 '13 at 13:58
  • They will work, if you correctly bind them to the iframe used by tineMCE... – BenM Mar 29 '13 at 13:59
  • oh yes you are right. I will look into that then if nothing specific is available. Thanks – Bernice Mar 29 '13 at 14:01

0 Answers0