标签:
1.修改kindereditor-all.js中的
var re = /(\s*)<(\/)?([\w\-:]+)((?:\s+|(?:\s+[\w\-:]+)|(?:\s+[\w\-:]+=[^\s"‘<>]+)|(?:\s+[\w\-:"]+="[^"]*")|(?:\s+[\w\-:"]+=‘[^‘]*‘))*)(\/)?>(\s*)/g;
为:
var re = /( \f\n\r\t\v*)<(\/)?([\w\-:]+)((?:\s+|(?:\s+[\w\-:]+)|(?:\s+[\w\-:]+=[^\s"‘<>]+)|(?:\s+[\w\-:"]+="[^"]*")|(?:\s+[\w\-:"]+=‘[^‘]*‘))*)(\/)?>( \f\n\r\t\v*)/g;
即将第一个与最后一个[\s]改为[\f\n\r\t\v]。原文出处
kindeditor编辑区空格被隐藏,导致所见所得不一致的解决办法
标签:
原文地址:http://www.cnblogs.com/fankeke/p/5568142.html