diff --git a/common/resources/src/main/resources/rawfile/rich_editor.js b/common/resources/src/main/resources/rawfile/rich_editor.js index 3da5dbf9cc10205baddf7682b7e4341f18cd0c5f..bd9a32b0d6a9b1b4ff951824ca4757262a38a5dc 100644 --- a/common/resources/src/main/resources/rawfile/rich_editor.js +++ b/common/resources/src/main/resources/rawfile/rich_editor.js @@ -280,15 +280,15 @@ RICH_EDITOR.setOutdent = function () { }; RICH_EDITOR.setJustifyLeft = function () { - document.execCommand('justifyLeft', false, null); + RICH_EDITOR.editor.style.textAlign = 'left'; }; RICH_EDITOR.setJustifyCenter = function () { - document.execCommand('justifyCenter', false, null); + RICH_EDITOR.editor.style.textAlign = 'center'; }; RICH_EDITOR.setJustifyRight = function () { - document.execCommand('justifyRight', false, null); + RICH_EDITOR.editor.style.textAlign = 'right'; }; RICH_EDITOR.insertImage = function (url) {