This commit is contained in:
2026-02-01 00:29:35 +01:00
parent 7f01e4f9f1
commit 45789e8ad2
2 changed files with 31 additions and 34 deletions

View File

@@ -1 +1 @@
1.1.78 1.1.79

View File

@@ -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;