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