【问题标题】:Jquery TinyMCE Add/Edit Link - Cannot Paste in IEJquery TinyMCE 添加/编辑链接 - 无法在 IE 中粘贴
【发布时间】: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


【解决方案1】:

我发现了问题。

是“inlinepopups”插件在弹出窗口上禁用剪贴板剪切/复制/粘贴。

删除 inlinepopups 可以解决问题,现在在“添加/编辑链接”弹出窗口中粘贴 url 可以在所有浏览器中使用。

需要注意的一点:建议仅对 IE 禁用此插件,因为它是一个有用的插件,此插件所做的只是帮助将这些对话框弹出窗口视为内联弹出窗口,以免遇到问题网站或浏览器有弹出窗口拦截器的地方。

谢谢

--

HRN

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多