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