开发者

mceRepaint of tinymce not works in ie7?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜