diff --git "a/docs/view/learningNotes/12.tiptap\345\237\272\346\234\254\346\225\231\347\250\213.md" "b/docs/view/learningNotes/12.tiptap\345\237\272\346\234\254\346\225\231\347\250\213.md" index 17c29e5..58b62a4 100644 --- "a/docs/view/learningNotes/12.tiptap\345\237\272\346\234\254\346\225\231\347\250\213.md" +++ "b/docs/view/learningNotes/12.tiptap\345\237\272\346\234\254\346\225\231\347\250\213.md" @@ -543,6 +543,7 @@ export default { if (newVal && this.contentValue) { // this.showDialog = false; this.content = this.contentValue + this.contentCopyText = this.contentValue.replace(//g, '\n') } } } @@ -550,6 +551,14 @@ export default { mounted() {}, methods: { handleInputEditor(e) { + this.contentCopyText = e + .split('

') + .filter(i => i) + .map(i => i.replace('

', '') + '
') + .join('') + .replaceAll(',', '') + .replace(//g, '\n') + .trimEnd() this.$emit('input', e) },