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: {
renderValue(value) {
if (this.quill) {
if (value) this.quill.clipboard.convert({ html: value });
else this.quill.setText('');
if (value) {
const delta = this.quill.clipboard.convert({ html: value });
this.quill.setContents(delta);
} else {
this.quill.setText('');
}
}
},
initQuill() {