asasd
This commit is contained in:
@@ -315,6 +315,13 @@
|
|||||||
saveBtn.addEventListener('click', () => {
|
saveBtn.addEventListener('click', () => {
|
||||||
const rawHtml = content.innerHTML || '';
|
const rawHtml = content.innerHTML || '';
|
||||||
let html = normalizeRteHtml(rawHtml);
|
let html = normalizeRteHtml(rawHtml);
|
||||||
|
try {
|
||||||
|
console.warn('[RTE SAVE DEBUG]', {
|
||||||
|
rawHtml,
|
||||||
|
normalizedHtml: html,
|
||||||
|
textContent: String(content.textContent || '').trim()
|
||||||
|
});
|
||||||
|
} catch {}
|
||||||
const isTextLike = component && component.is && (component.is('text') || component.is('button') || component.is('link'));
|
const isTextLike = component && component.is && (component.is('text') || component.is('button') || component.is('link'));
|
||||||
try {
|
try {
|
||||||
if (!isTextLike && component.components) {
|
if (!isTextLike && component.components) {
|
||||||
@@ -332,6 +339,7 @@
|
|||||||
editor.trigger('component:update', component);
|
editor.trigger('component:update', component);
|
||||||
}
|
}
|
||||||
} catch {}
|
} catch {}
|
||||||
|
try { editor.__bridgeRteAllowClose = true; } catch {}
|
||||||
closeModal();
|
closeModal();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user