fixed - editor initial value not set correctly
parent
9e35aa1804
commit
615c79dfce
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue