kindeditor 纯文本粘贴遇到的问题

llyido 发布于 2015/08/07 10:33
阅读 1K+
收藏 0

纯文本粘贴

pasteType : 1 ; 采用了正则匹配过滤

把kindeditor 设置成纯文本粘贴, 打开word文档,复制文档里文字,会把文档属性粘贴进去.

demo:demo

下如一些多余word属性:
Normal 0 7.8 磅 0 2 false false false EN-US ZH-CN X-NONE / Style Definitions / table.MsoNormalTable {mso-style-name:普通表格; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-parent:""; mso-padding-alt:0cm 5.4pt 0cm 5.4pt; mso-para-margin:0cm; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.5pt; mso-bidi-font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin; mso-bidi-font-family:"Times New Roman"; mso-bidi-theme-font:minor-bidi; mso-font-kerning:1.0pt;}

加载中
返回顶部
顶部