fix: 粘贴会错误的过滤掉空格

This commit is contained in:
yanmao 2021-12-08 11:04:31 +08:00
parent eacabfcd0e
commit 15e9f9fa2d
1 changed files with 4 additions and 4 deletions

View File

@ -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();