【发布时间】:2012-10-17 04:16:47
【问题描述】:
使用 Jquery TinyMCE 时,选择一些文本并尝试添加超链接,会出现添加/编辑链接 tinymce 弹出窗口,但是当我尝试粘贴 URL 时,无法在 IE 中启用右键单击“粘贴”选项,也Ctrl+V 能用吗?
这仅适用于 IE 浏览器。我可以粘贴到 Chrome 和 FF 中。
这就是我配置 tinymce 的方式。
:{
theme: "advanced",
mode : "specific_textareas",
editor_selector: "richtext-editor",
theme_advanced_toolbar_location:"top",
theme_advanced_toolbar_align:"left",
theme_advanced_buttons1:"bold,italic,underline,strikethrough,|,fontsizeselect,forecolorpicker,|,link,unlink,|,bullist,numlist,|,outdent,indent,|,justifyleft,justifycenter,justifyright,|,cut,copy,paste,pastetext,|,undo,redo",
theme_advanced_buttons2:"",
theme_advanced_buttons3:"",
theme_advanced_buttons4:"",
plugins:"inlinepopups,paste",
theme_advanced_path : false,
inline_styles : true,
paste_remove_styles: true,
paste_retain_style_properties: "",
paste_convert_headers_to_strong : true,
invalid_elements : "img"
//plugins:"advlink,iespell,inlinepopups,media,print,contextmenu,paste"
}
注意:
在编辑器中粘贴在所有浏览器中都能完美运行。我也尝试过启用上下文菜单,但没有成功。
我还仔细检查了我要粘贴的网址确实已复制到剪贴板
谢谢。
【问题讨论】:
-
+1 好问题。我强烈建议大家不要使用 jquery tinymce 构建,因为它很慢并且是麻烦的根源
标签: jquery tinymce wysiwyg text-editor rich-text-editor