fixed - editor initial value not set correctly

pull/7293/head
Aditya Chandra 2025-02-12 21:14:22 +07:00
parent 9e35aa1804
commit 615c79dfce
1 changed files with 6 additions and 2 deletions

View File

@ -118,8 +118,12 @@ export default {
methods: { methods: {
renderValue(value) { renderValue(value) {
if (this.quill) { if (this.quill) {
if (value) this.quill.clipboard.convert({ html: value }); if (value) {
else this.quill.setText(''); const delta = this.quill.clipboard.convert({ html: value });
this.quill.setContents(delta);
} else {
this.quill.setText('');
}
} }
}, },
initQuill() { initQuill() {