This commit is contained in:
2026-01-16 01:46:58 +01:00
parent 35edcad664
commit 2d408719ac

View File

@@ -765,6 +765,16 @@
const selectedEl = selected && selected.view && selected.view.el; const selectedEl = selected && selected.view && selected.view.el;
if (selected && selectedEl && (selectedEl === target || selectedEl.contains(target))) { if (selected && selectedEl && (selectedEl === target || selectedEl.contains(target))) {
const html = String(target.innerHTML || '').trim(); const html = String(target.innerHTML || '').trim();
try {
const content = selected && selected.get ? selected.get('content') : '';
console.warn('[RTE BLUR DEBUG]', {
tag: target.tagName,
htmlLen: html.length,
contentLen: String(content || '').length,
modelType: selected && selected.get ? selected.get('type') : undefined,
modelId: selected && (selected.getId ? selected.getId() : selected.get && selected.get('id')),
});
} catch {}
if (html) { if (html) {
try { try {
if (selected.components) { if (selected.components) {