This commit is contained in:
Vanessa 2023-11-28 21:17:19 +08:00
parent 81f39961eb
commit ec29bc7071
4 changed files with 21 additions and 30 deletions

View file

@ -343,9 +343,7 @@ export const editor = {
}
window.siyuan.config.editor = editorData;
getAllModels().editor.forEach((item) => {
if (!changeReadonly) {
reloadProtyle(item.editor.protyle, false);
}
reloadProtyle(item.editor.protyle, false);
let isFullWidth = item.editor.protyle.wysiwyg.element.getAttribute(Constants.CUSTOM_SY_FULLWIDTH);
if (!isFullWidth) {
isFullWidth = window.siyuan.config.editor.fullWidth ? "true" : "false";