From b705d1ef2c80ebaf08be3bd6c1b5b2383eabfd2f Mon Sep 17 00:00:00 2001 From: zwx1126739 Date: Thu, 15 Aug 2024 19:55:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=A4=87=E5=BF=98=E5=BD=95?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=9C=89=E5=BA=8F=E5=88=97=E8=A1=A8=E5=90=8E?= =?UTF-8?q?=E5=AD=97=E4=BD=93=E5=BC=82=E5=B8=B8=E5=8F=98=E5=8C=96=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zwx1126739 --- common/resources/src/main/resources/rawfile/rich_editor.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/common/resources/src/main/resources/rawfile/rich_editor.js b/common/resources/src/main/resources/rawfile/rich_editor.js index 3da5dbf..bd9a32b 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) { -- Gitee