fix:修复显示与编辑不一致的问题

This commit is contained in:
wangwenrui
2020-10-21 09:58:31 +08:00
parent 0815df4222
commit bb34130c7b
2 changed files with 9 additions and 8 deletions

View File

@@ -22,7 +22,7 @@
toolbar:[
[{ 'header': [1, 2, 3, 4, 5, 6, false] }],
['bold', 'italic', 'underline', 'strike'],
['link'],
['link','code-block'],
[{ 'list': 'ordered'}, { 'list': 'bullet' }],
[{ 'color': [] }, { 'background': [] }],
[{ 'align': [] }],
@@ -54,7 +54,7 @@
},
getHtml:function(){
let html=this.quill.root.innerHTML;
return html;
return `<div class="editor-core ql-container ql-snow"><div class="ql-editor">${html}</div></div>`;
},
guid() {
function S4() {