From d2b64df04578ba25fa38c680493aa2c22f6ab05b Mon Sep 17 00:00:00 2001 From: zhanghongchuan33 Date: Mon, 30 May 2022 16:53:59 +0800 Subject: [PATCH] Fix error Signed-off-by: zhanghongchuan33 --- common/resources/src/main/resources/rawfile/rich_editor.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/resources/src/main/resources/rawfile/rich_editor.js b/common/resources/src/main/resources/rawfile/rich_editor.js index 698e555..9b17b72 100644 --- a/common/resources/src/main/resources/rawfile/rich_editor.js +++ b/common/resources/src/main/resources/rawfile/rich_editor.js @@ -17,7 +17,7 @@ var RICH_EDITOR = {}; RICH_EDITOR.editor = document.getElementById('editorjs'); -RICH_EDITOR.setHtml = function(contents) { +RICH_EDITOR.setHtml = function (contents) { var base64regex = /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/; if (base64regex.test(contents)) { RICH_EDITOR.editor.innerHTML = decodeURIComponent(escape(atob(contents))); @@ -26,7 +26,7 @@ RICH_EDITOR.setHtml = function(contents) { } } -RICH_EDITOR.getHtml = function() { +RICH_EDITOR.getHtml = function () { return RICH_EDITOR.editor.innerHTML; }