asdasd
This commit is contained in:
@@ -96,11 +96,6 @@
|
|||||||
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) {
|
||||||
@@ -318,12 +313,6 @@
|
|||||||
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();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user