This commit is contained in:
2026-01-27 23:42:05 +01:00
parent e1a79c22f3
commit e14b8ed704
2 changed files with 14 additions and 1 deletions

View File

@@ -1 +1 @@
1.1.29 1.1.30

View File

@@ -219,6 +219,19 @@
if (editor && typeof editor.trigger === 'function') { if (editor && typeof editor.trigger === 'function') {
editor.trigger('component:update', component); editor.trigger('component:update', component);
} }
if (isText && component.view && component.view.el) {
const reapply = () => {
try {
const currentHtml = String(component.view.el.innerHTML || '').trim();
const targetHtml = String(content || '').trim();
if (targetHtml && currentHtml !== targetHtml) {
component.view.el.innerHTML = targetHtml;
}
} catch {}
};
setTimeout(reapply, 0);
setTimeout(reapply, 50);
}
} }
collectFrameCss(editor) { collectFrameCss(editor) {