简体   繁体   中英

Alert selected text from tinyMCE not working in IE

I want to alert the selected text from tinyMCE editor in Moodle. This is working fine in google chrome but not working in IE.

alert selected text:

alert(tinyMCEPopup.editor.selection.getContent()); // working in chrome not working in IE

alert entire text in editor

alert(tinyMCEPopup.editor.getContent());  //working in both chrome and IE

How can I alert the selected text in IE browser??

I am using IE version 11 , tinyMCE 3.5 and Moodle 2.7

The only thing I can think of is updating your TinyMCE to a latest version if possible.

This link says they just added compatibility for IE 11 in TinyMCE 3.5.9 release

http://www.tinymce.com/forum/viewtopic.php?id=32792

But, for IE everything is on luck ;-)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM