fix: 粘贴会错误的过滤掉空格
This commit is contained in:
parent
eacabfcd0e
commit
15e9f9fa2d
|
@ -51,10 +51,10 @@ export default class Paste {
|
|||
}
|
||||
if (node.isText()) {
|
||||
let text = node.text();
|
||||
if (/\s/.test(text)) {
|
||||
text = text.replace(/\s/g, ' ');
|
||||
node.text(text);
|
||||
}
|
||||
// if (/\x20/.test(text)) {
|
||||
// text = text.replace(/\x20/g, ' ');
|
||||
// node.text(text);
|
||||
// }
|
||||
if (/\u200b/.test(text)) {
|
||||
let isRemove = true;
|
||||
const next = node.next();
|
||||
|
|
Loading…
Reference in New Issue