This commit is contained in:
2026-01-26 22:21:58 +01:00
parent 7ac4cc60f7
commit d2bf9b14f8
2 changed files with 8 additions and 2 deletions

View File

@@ -170,10 +170,16 @@
applyContentToComponent(editor, component, html) {
if (!component) return;
const content = String(html || '');
const isText = (component.is && component.is('text'))
|| (component.get && component.get('type') === 'text');
try {
if (component.set) component.set('content', content);
} catch {}
if (component.view && typeof component.view.render === 'function') {
if (isText && component.view && component.view.el) {
try {
component.view.el.innerHTML = content;
} catch {}
} else if (component.view && typeof component.view.render === 'function') {
component.view.render();
}
if (component.trigger) {