mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-23 18:10:12 +01:00
This commit is contained in:
parent
06cacf1311
commit
194a18fc95
7 changed files with 51 additions and 51 deletions
|
|
@ -3,6 +3,7 @@ import {setInlineStyle} from "../util/assets";
|
|||
import {fetchPost} from "../util/fetch";
|
||||
import {confirmDialog} from "../dialog/confirmDialog";
|
||||
import {setPadding} from "../protyle/ui/initUI";
|
||||
import {reloadProtyle} from "../protyle/util/reload";
|
||||
|
||||
export const editor = {
|
||||
element: undefined as Element,
|
||||
|
|
@ -201,7 +202,7 @@ export const editor = {
|
|||
onSetEditor: (editor: IEditor) => {
|
||||
window.siyuan.config.editor = editor;
|
||||
getAllModels().editor.forEach((item) => {
|
||||
item.editor.reload();
|
||||
reloadProtyle(item.editor.protyle)
|
||||
setPadding(item.editor.protyle);
|
||||
if (window.siyuan.config.editor.fullWidth) {
|
||||
item.editor.protyle.contentElement.setAttribute("data-fullwidth", "true");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue