问题描述
限时送ChatGPT账号..我关于 TinyMCE 编辑器的问题.在 IE 浏览器中它工作正常.但是当我在 FF & 中粘贴一些东西时Chrome 我收到消息:您的浏览器不支持直接访问剪贴板.请改用 Ctrl+X/C/V 键盘快捷键."我还没有找到任何文档来解决这个问题!我需要帮助,谢谢!
My question about TinyMCE editor. In IE brower it works fine. But when I paste something in FF & Chrome I'm receiving the message: "Your browser doesn't support direct access to the clipboard. Please use the Ctrl+X/C/V keyboard shortcuts instead." I've not found any documentation to solve this problem! I need help ,Thanks!
推荐答案
我有点晚了,但我遇到了同样的问题.我做了一些挖掘,这个配置对我有用.
I'm a little late to this, but I was having the same problem. I did some digging, and this configuration worked for me.
tinyMCE.init({
selector: "textarea",
language: editorLanguage,
plugins: [
"autolink lists link image anchor",
"searchreplace visualblocks",
"insertdatetime media contextmenu paste"
],
menu: {
edit: { title: 'Edit', items: 'undo redo | cut copy paste | selectall' },
insert: { title: 'Insert', items: 'link image' },
view: { title: 'View', items: 'visualaid' },
format: { title: 'Format', items: 'bold italic underline strikethrough superscript subscript | formats | removeformat' }
},
convert_urls: false,
paste_data_images: true
});
不过,您至少需要的是:
At a minimum though, all you need is this:
tinyMCE.init({
selector: "textarea",
plugins: "image,paste",
paste_data_images: true
});
这对我有用,使用 cdn 托管版本 (cdn.tinymce/4/tinymce.min.js)
This is working for me, using the cdn hosted version ( cdn.tinymce/4/tinymce.min.js )
希望这对某人有所帮助!
Hope this helps someone!
这篇关于TinyMCE“粘贴按钮"不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
更多推荐
[db:关键词]
发布评论