CKEditor - 如何禁用 PasteFromWord
这简直要了我的命。我一小时都找不到解决方案。问题是 - 如何在 CKEditor 中完全禁用 PasteFromWord?我希望粘贴的文本是纯文本 - 根本不进行编辑。
提前致谢。
This one is killing me. I have not been able to find the solution for one hour. The question is - how do I completely disable pastefromword in CKEditor? I want the pasted text to be plain - not edited at all.
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
在 ckeditor/config.js 中,使用:
有关更多详细信息:http://docs。 cksource.com/ckeditor_api/symbols/CKEDITOR.config.html
In ckeditor/config.js, use:
For more details: http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.config.html
选择文件 CKEditor\CKEditor.js
查找关键字“i.toolbar_Full”
操作以下代码块以添加、禁用或更改图标位置
choose the file CKEditor\CKEditor.js
look for keyword "i.toolbar_Full"
manipulate the following chunk of code to add, disable or change location of icons
尝试使用此代码(config.js)
它可能对您有帮助......
Try with this code (config.js)
it may be helpful to You...
好了...将该行
代码添加到底部的 config.js 文件中。
there ya go...
add that line of code to your
config.js
file at the bottom..在 config.js 文件中使用以下行:
Use these lines in your config.js file :