This commit is contained in:
2026-01-26 01:06:19 +01:00
parent a9c628cc6e
commit d36ebfece5
3 changed files with 24 additions and 0 deletions

View File

@@ -532,6 +532,14 @@
jsonPreview: jsonProjectDataRaw.slice(0, 200),
});
}
if (B && B.DEBUG_RTE) {
console.group('[RTE DEBUG] save-data');
console.log('htmlLength', htmlContent.length);
console.log('jsonLength', jsonProjectDataRaw.length);
console.log('html', htmlContent);
console.log('json', jsonProjectDataRaw);
console.groupEnd();
}
if (B.CURRENT_ENTITY_NAME) {
dataToSend.name = B.CURRENT_ENTITY_NAME;

View File

@@ -749,6 +749,21 @@
}
} catch {}
}, 120);
if (this.B && this.B.DEBUG_RTE) {
try {
const gjsHtml = editor && typeof editor.getHtml === 'function' ? editor.getHtml() : '';
const serHtml = BridgeRTE.serializeHtml(editor);
console.group('[RTE DEBUG] save snapshot');
console.log('component id', component && (component.getId ? component.getId() : component.get && component.get('id')));
console.log('model content', component && component.get ? component.get('content') : '');
console.log('view html', component?.view?.el?.innerHTML || '');
console.log('editor.getHtml len', String(gjsHtml || '').length);
console.log('serializeHtml len', String(serHtml || '').length);
console.log('editor.getHtml', gjsHtml);
console.log('serializeHtml', serHtml);
console.groupEnd();
} catch {}
}
closeModal();
});