mirror of
https://github.com/kuaifan/dootask.git
synced 2026-03-17 19:23:26 +00:00
fix: 输入框粘贴后出错的问题
This commit is contained in:
parent
66b7a00b5c
commit
47f3dadfd4
@ -593,7 +593,7 @@ export default {
|
|||||||
const range = this.quill.getSelection();
|
const range = this.quill.getSelection();
|
||||||
if (range) {
|
if (range) {
|
||||||
const endText = this.quill.getText(range.index);
|
const endText = this.quill.getText(range.index);
|
||||||
/\n\n/.test(endText) && this.quill.deleteText(range.index, 1);
|
/^\n\n$/.test(endText) && this.quill.deleteText(range.index, 1);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user