修复备忘录页面居中字体变化问题

Signed-off-by: zhanghong <zhanghong121@huawei.com>
This commit is contained in:
zhanghong 2024-10-29 19:49:20 +08:00
parent d5a52cc28d
commit 6ecb0dee16

View File

@ -288,21 +288,15 @@ RICH_EDITOR.setOutdent = function () {
};
RICH_EDITOR.setJustifyLeft = function () {
let fontSize = document.queryCommandValue('fontSize');
document.execCommand('justifyLeft', false, null);
document.execCommand('fontSize', false, fontSize);
};
RICH_EDITOR.setJustifyCenter = function () {
let fontSize = document.queryCommandValue('fontSize');
document.execCommand('justifyCenter', false, null);
document.execCommand('fontSize', false, fontSize);
};
RICH_EDITOR.setJustifyRight = function () {
let fontSize = document.queryCommandValue('fontSize');
document.execCommand('justifyRight', false, null);
document.execCommand('fontSize', false, fontSize);
};
RICH_EDITOR.insertImage = function (url) {