This commit is contained in:
parent
f53ab40ed8
commit
f39c4b3b69
1 changed files with 2 additions and 2 deletions
|
@ -138,14 +138,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", "style", "data-realwidth"].includes(oldKey) &&
|
||||
if (!["type", "class", "spellcheck", "contenteditable", "data-doc-type", "style", "data-realwidth", "data-readonly"].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", "style", "data-realwidth"].includes(key)) {
|
||||
if (!["title-img", "title", "updated", "icon", "id", "type", "class", "spellcheck", "contenteditable", "data-doc-type", "style", "data-realwidth", "data-readonly"].includes(key)) {
|
||||
this.element.setAttribute(key, ial[key]);
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue