asdsad
This commit is contained in:
@@ -1 +1 @@
|
|||||||
1.1.78
|
1.1.79
|
||||||
@@ -484,7 +484,6 @@
|
|||||||
}
|
}
|
||||||
if (component && component.view && component.view.el) {
|
if (component && component.view && component.view.el) {
|
||||||
const viewEl = component.view.el;
|
const viewEl = component.view.el;
|
||||||
const hasInline = /<span\b|style\s*=/i.test(htmlSource);
|
|
||||||
const inlineComputedStyles = (sourceEl) => {
|
const inlineComputedStyles = (sourceEl) => {
|
||||||
try {
|
try {
|
||||||
const docRef = sourceEl.ownerDocument || document;
|
const docRef = sourceEl.ownerDocument || document;
|
||||||
@@ -532,7 +531,6 @@
|
|||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
if (!hasInline) {
|
|
||||||
const inlined = inlineComputedStyles(viewEl);
|
const inlined = inlineComputedStyles(viewEl);
|
||||||
if (inlined) {
|
if (inlined) {
|
||||||
htmlSource = inlined;
|
htmlSource = inlined;
|
||||||
@@ -565,7 +563,6 @@
|
|||||||
} catch {}
|
} catch {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
const initialHtml = this.sanitizeInlineHtml(htmlSource, modelContent || '');
|
const initialHtml = this.sanitizeInlineHtml(htmlSource, modelContent || '');
|
||||||
content.innerHTML = initialHtml;
|
content.innerHTML = initialHtml;
|
||||||
const existingStyle = component && component.get && component.get('style') ? component.get('style') : null;
|
const existingStyle = component && component.get && component.get('style') ? component.get('style') : null;
|
||||||
|
|||||||
Reference in New Issue
Block a user