mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 17:10:12 +01:00
This commit is contained in:
parent
4e4a4cb2e3
commit
3f123505b3
1 changed files with 5 additions and 0 deletions
|
|
@ -7,6 +7,11 @@ import {Constants} from "../../constants";
|
||||||
export const initUI = (protyle: IProtyle) => {
|
export const initUI = (protyle: IProtyle) => {
|
||||||
protyle.contentElement = document.createElement("div");
|
protyle.contentElement = document.createElement("div");
|
||||||
protyle.contentElement.className = "protyle-content";
|
protyle.contentElement.className = "protyle-content";
|
||||||
|
if (window.siyuan.config.editor.fullWidth) {
|
||||||
|
protyle.contentElement.setAttribute("data-fullwidth", "true");
|
||||||
|
} else {
|
||||||
|
protyle.contentElement.removeAttribute("data-fullwidth");
|
||||||
|
}
|
||||||
if (protyle.options.render.background) {
|
if (protyle.options.render.background) {
|
||||||
protyle.contentElement.appendChild(protyle.background.element);
|
protyle.contentElement.appendChild(protyle.background.element);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue