diff --git a/config/current.ver b/config/current.ver index fae04a2..321b7ce 100644 --- a/config/current.ver +++ b/config/current.ver @@ -1 +1 @@ -1.1.29 \ No newline at end of file +1.1.30 \ No newline at end of file diff --git a/public/assets/js/bridge/rte-editor.js b/public/assets/js/bridge/rte-editor.js index 144fc63..b8255b7 100644 --- a/public/assets/js/bridge/rte-editor.js +++ b/public/assets/js/bridge/rte-editor.js @@ -219,6 +219,19 @@ if (editor && typeof editor.trigger === 'function') { 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) {