mirror of
https://github.com/kuaifan/dootask.git
synced 2026-02-27 20:30:32 +00:00
fix: 输入框粘贴后出错的问题
This commit is contained in:
parent
66b7a00b5c
commit
47f3dadfd4
@ -593,7 +593,7 @@ export default {
|
||||
const range = this.quill.getSelection();
|
||||
if (range) {
|
||||
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