这是一个杀我。我无法找到一个小时的解决方案。问题是 - 我如何完全禁用CKEditor中的pastefromword?我希望粘贴的文本是平淡的 - 根本不需要编辑。CKEditor - 如何禁用pastefromword
在此先感谢。
这是一个杀我。我无法找到一个小时的解决方案。问题是 - 我如何完全禁用CKEditor中的pastefromword?我希望粘贴的文本是平淡的 - 根本不需要编辑。CKEditor - 如何禁用pastefromword
在此先感谢。
在CKEditor的/ config.js,使用:
config.forcePasteAsPlainText = true;
详情:http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.config.html
尝试使用这个代码(config.js)
config.removePlugins = 'PasteFromWord';
它可以是对你有帮助...
选择文件CKEditor的\ CKEditor.js
查找关键字 “i.toolbar_Full”
操纵下面的代码块添加,禁用或图标
i.toolbar_Full=[['Source','-','Save','NewPage','Preview','-','Templates'],['Cut','Copy','Paste','PasteText','PasteFromWord','-','Print','SpellChecker','Scayt'],['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],['Form','Checkbox','Radio','TextField','Textarea','Select','Button','ImageButton','HiddenField'],'/',['Bold','Italic','Underline','Strike','-','Subscript','Superscript'],['NumberedList','BulletedList','-','Outdent','Indent','Blockquote','CreateDiv'],['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],['BidiLtr','BidiRtl'],['Link','Unlink','Anchor'],['Flash','Table','HorizontalRule','Smiley','SpecialChar','PageBreak','Iframe'],'/',['Styles','Format','Font','FontSize'],['TextColor','BGColor'],['Maximize','ShowBlocks','-','About']];
有亚去改变位置.. 。
config.removeButtons = 'PasteFromWord';
该行的代码添加到您的config.js
文件底部..
在你的config.js文件中使用这些行:
config.pasteFromWord=true;
config.pasteFromWordRemoveFontStyles = true;
config.pasteFromWordNumberedHeadingToList =true;