This commit is contained in:
2026-01-17 01:36:51 +01:00
parent 67f3810480
commit 4c717ebd07

View File

@@ -96,6 +96,11 @@
if (!component) return;
const content = String(html || '');
try {
const isText = (component.is && component.is('text'))
|| (component.get && component.get('type') === 'text');
if (isText && component.components) {
component.components(content);
}
if (component.set) component.set('content', content);
} catch {}
if (component.view && component.view.el) {
@@ -313,6 +318,12 @@
logConsoleSnapshot(editor, component, 'before-save');
applyContentToComponent(editor, component, html);
logConsoleSnapshot(editor, component, 'after-save');
try {
if (editor && editor.setEditing) editor.setEditing(null);
if (editor && editor.RichTextEditor && editor.RichTextEditor.disable && component.view && component.view.el) {
editor.RichTextEditor.disable(component.view.el);
}
} catch {}
closeModal();
});