File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 110110
111111 // Set editor content
112112 if (this .value || this .content ) {
113- this .quill .pasteHTML (this .value || this .content )
113+ this .quill .setContents (this .quill . clipboard . convert ( this . value || this .content ) )
114114 }
115115
116116 // Disabled editor
149149 if (this .quill ) {
150150 if (newVal && newVal !== this ._content ) {
151151 this ._content = newVal
152- this .quill .pasteHTML ( newVal)
152+ this .quill .setContents ( this . quill . clipboard . convert ( newVal) )
153153 } else if (! newVal) {
154154 this .quill .setText (' ' )
155155 }
160160 if (this .quill ) {
161161 if (newVal && newVal !== this ._content ) {
162162 this ._content = newVal
163- this .quill .pasteHTML ( newVal)
163+ this .quill .setContents ( this . quill . clipboard . convert ( newVal) )
164164 } else if (! newVal) {
165165 this .quill .setText (' ' )
166166 }
You can’t perform that action at this time.
0 commit comments