ydfdsf
This commit is contained in:
@@ -491,14 +491,18 @@
|
||||
saveBtn.style.cursor = 'pointer';
|
||||
saveBtn.addEventListener('click', () => {
|
||||
const html = content.innerHTML;
|
||||
if (component.is && component.is('text')) {
|
||||
component.set && component.set('content', html);
|
||||
} else if (component.components) {
|
||||
component.components(html);
|
||||
}
|
||||
if (component.view && component.view.render) {
|
||||
component.view.render();
|
||||
}
|
||||
try {
|
||||
if (component.components) {
|
||||
component.components(html);
|
||||
}
|
||||
if (component.set) {
|
||||
component.set('content', html);
|
||||
component.trigger && component.trigger('change:content');
|
||||
}
|
||||
if (component.view && component.view.render) {
|
||||
component.view.render();
|
||||
}
|
||||
} catch {}
|
||||
modal.close();
|
||||
});
|
||||
|
||||
@@ -612,6 +616,11 @@
|
||||
|
||||
editor.on('component:selected', (model) => ensureTextToolbarButton(editor, model));
|
||||
editor.on('component:add', (model) => ensureTextToolbarButton(editor, model));
|
||||
editor.on('component:dblclick', (model) => {
|
||||
if (model && model.is && model.is('text')) {
|
||||
openRichTextModal(editor, model);
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
const loadDynamicFonts = async () => {
|
||||
|
||||
Reference in New Issue
Block a user