Rich Text Editor now working

This commit is contained in:
Michael Washington
2019-11-29 15:41:48 -08:00
parent ac3144fca4
commit 3162caca01
4 changed files with 4 additions and 11 deletions

View File

@ -154,8 +154,7 @@ window.interop = {
return editorElement.__quill.root.innerHTML;
},
loadQuillContent: function (editorElement, editorContent) {
content = JSON.parse(editorContent);
return editorElement.__quill.setContents(content, 'api');
return editorElement.__quill.root.innerHTML = editorContent;
},
enableQuillEditor: function (editorElement, mode) {
editorElement.__quill.enable(mode);