开发者

mceRepaint of tinymce not works in ie7?

开发者 https://www.devze.com 2023-01-31 00:40 出处:网络
Once i edited image inside tinymce. i had used tinyMCE.execCommand(\"mceRepaint\"); to repaint and remove image selection.

Once i edited image inside tinymce. i had used tinyMCE.execCommand("mceRepaint"); to repaint and remove image selection.

tinyMCE.execCommand("mceRepaint开发者_开发技巧"); works in all browser but ie7 selector is still display after editing image. How can i remove selector of image inside tinymce while using ie7


You can collapse the selection to remove the drag handles in IE:

tinyMCE.activeEditor.selection.collapse()

This will also keep the cursor position relatively close to where the user expects it to be. Alternatively, the cleanup command will remove the handles in all browsers (along with the selection):

tinyMCE.activeEditor.execCommand('mceCleanup');
0

精彩评论

暂无评论...
验证码 换一张
取 消