|
@@ -78,9 +78,6 @@ export class WYSIWYG {
|
|
|
if (window.siyuan.config.editor.displayBookmarkIcon) {
|
|
|
this.element.classList.add("protyle-wysiwyg--attr");
|
|
|
}
|
|
|
- if (window.siyuan.config.editor.fullWidth) {
|
|
|
- this.element.setAttribute("data-fullwidth", "true");
|
|
|
- }
|
|
|
this.bindEvent(protyle);
|
|
|
keydown(protyle, this.element);
|
|
|
dropEvent(protyle, this.element);
|
|
@@ -90,14 +87,14 @@ export class WYSIWYG {
|
|
|
const ialKeys = Object.keys(ial);
|
|
|
for (let i = 0; i < this.element.attributes.length; i++) {
|
|
|
const oldKey = this.element.attributes[i].nodeName;
|
|
|
- if (!["type", "class", "spellcheck", "contenteditable", "data-doc-type", "data-fullwidth", "style"].includes(oldKey) &&
|
|
|
+ if (!["type", "class", "spellcheck", "contenteditable", "data-doc-type", "style"].includes(oldKey) &&
|
|
|
!ialKeys.includes(oldKey)) {
|
|
|
this.element.removeAttribute(oldKey);
|
|
|
i--;
|
|
|
}
|
|
|
}
|
|
|
ialKeys.forEach((key: string) => {
|
|
|
- if (!["title-img", "title", "updated", "icon", "id", "type", "class", "spellcheck", "contenteditable", "data-doc-type", "data-fullwidth", "style"].includes(key)) {
|
|
|
+ if (!["title-img", "title", "updated", "icon", "id", "type", "class", "spellcheck", "contenteditable", "data-doc-type", "style"].includes(key)) {
|
|
|
this.element.setAttribute(key, ial[key]);
|
|
|
}
|
|
|
});
|