diff --git a/common/resources/src/main/resources/rawfile/editor.html b/common/resources/src/main/resources/rawfile/editor.html index dbb4c09c5ff07e37793b486d2f46be31e95f921b..9bda9dd9dc67c003a78995c52c25c5008d3195e9 100644 --- a/common/resources/src/main/resources/rawfile/editor.html +++ b/common/resources/src/main/resources/rawfile/editor.html @@ -17,6 +17,7 @@
+
diff --git a/common/resources/src/main/resources/rawfile/rich_editor.js b/common/resources/src/main/resources/rawfile/rich_editor.js index 2aa2dc179d0df2be16c4ac8274fef70b7143f152..2b0fb7251f46214dfa1ab9cba63111e771669f46 100644 --- a/common/resources/src/main/resources/rawfile/rich_editor.js +++ b/common/resources/src/main/resources/rawfile/rich_editor.js @@ -27,7 +27,7 @@ RICH_EDITOR.setHtml = function (contents) { }; RICH_EDITOR.getHtml = function () { - return RICH_EDITOR.editor.innerHTML; + return document.getElementById('editorjs_box').editor.innerHTML; }; RICH_EDITOR.undo = function () { @@ -279,8 +279,8 @@ RICH_EDITOR.insertImage = function (url) { var html = '

picvision

'; - RICH_EDITOR.insertHTML(html); - RICH_EDITOR.editor.scrollIntoView(false); + document.getElementById('editorjs').innerHTML += html + document.getElementById('editorjs').scrollIntoView(false); }; RICH_EDITOR.insertHTML = function (html) {