diff --git a/config/current.ver b/config/current.ver index e526099..c99926d 100644 --- a/config/current.ver +++ b/config/current.ver @@ -1 +1 @@ -1.1.37 \ No newline at end of file +1.1.38 \ 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 e724c17..968968f 100644 --- a/public/assets/js/bridge/rte-editor.js +++ b/public/assets/js/bridge/rte-editor.js @@ -173,6 +173,11 @@ const isText = (component.is && component.is('text')) || (component.get && component.get('type') === 'text'); try { + if (isText && component.components) { + try { + component.components(content); + } catch {} + } if (component.set) component.set('content', content); } catch {} if (component.view && typeof component.view.render === 'function') { diff --git a/public/editor/bridge-core.js b/public/editor/bridge-core.js index 810865b..7e1eadf 100644 --- a/public/editor/bridge-core.js +++ b/public/editor/bridge-core.js @@ -434,6 +434,11 @@ if (viewHtml === modelHtml) return; try { syncing.add(target); + if (target.components) { + try { + target.components(viewHtml); + } catch {} + } if (target.set) target.set('content', viewHtml); target.trigger && target.trigger('change:content'); if (target.view && typeof target.view.render === 'function') {