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; if (!component) return;
const content = String(html || ''); const content = String(html || '');
try { 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); if (component.set) component.set('content', content);
} catch {} } catch {}
if (component.view && component.view.el) { if (component.view && component.view.el) {
@@ -313,6 +318,12 @@
logConsoleSnapshot(editor, component, 'before-save'); logConsoleSnapshot(editor, component, 'before-save');
applyContentToComponent(editor, component, html); applyContentToComponent(editor, component, html);
logConsoleSnapshot(editor, component, 'after-save'); 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(); closeModal();
}); });