This commit is contained in:
Vanessa 2022-07-28 21:36:18 +08:00
parent bb82261522
commit 811c95a91e
2 changed files with 4 additions and 7 deletions

View file

@ -197,9 +197,9 @@ export const editor = {
item.editor.reload();
setPadding(item.editor.protyle);
if (window.siyuan.config.editor.fullWidth) {
item.editor.protyle.wysiwyg.element.setAttribute("data-fullwidth", "true");
item.editor.protyle.contentElement.setAttribute("data-fullwidth", "true");
} else {
item.editor.protyle.wysiwyg.element.removeAttribute("data-fullwidth");
item.editor.protyle.contentElement.removeAttribute("data-fullwidth");
}
});
setInlineStyle();