在ckeditor/config.js的CKEDITOR.editorConfig = function( config ){}函数中添加如下配置
//是否强制复制来的内容去除格式 plugins/pastetext/plugin.js
config.forcePasteAsPlainText =false//不去除
//是否使用等标签修饰或者代替从word文档中粘贴过来的内容 plugins/pastefromword/plugin.js
config.pasteFromWordKeepsStructure = false;
//从word中粘贴内容时是否移除格式 plugins/pastefromword/plugin.js
config.pasteFromWordRemoveStyle = false
config.pasteFromWordRemoveFontStyles = false;
参考文章:http://blog.ncmem.com/wordpress/2023/09/15/ckeditor%e4%bb%8eword%e7%b2%98%e8%b4%b4%e9%97%ae%e9%a2%98-3/
欢迎入群一起讨论
标签:false,CKEditor,js,plugins,word,config,粘贴 From: https://www.cnblogs.com/songsu/p/17704850.html