asdasd
This commit is contained in:
@@ -532,6 +532,14 @@
|
|||||||
jsonPreview: jsonProjectDataRaw.slice(0, 200),
|
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) {
|
if (B.CURRENT_ENTITY_NAME) {
|
||||||
dataToSend.name = B.CURRENT_ENTITY_NAME;
|
dataToSend.name = B.CURRENT_ENTITY_NAME;
|
||||||
|
|||||||
@@ -749,6 +749,21 @@
|
|||||||
}
|
}
|
||||||
} catch {}
|
} catch {}
|
||||||
}, 120);
|
}, 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();
|
closeModal();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -56,6 +56,7 @@ if ($fontSources) {
|
|||||||
window.BridgeParts.ENABLE_PLACEHOLDERS = true;
|
window.BridgeParts.ENABLE_PLACEHOLDERS = true;
|
||||||
window.BridgeParts.ENABLE_TABLE_BUILDER = true;
|
window.BridgeParts.ENABLE_TABLE_BUILDER = true;
|
||||||
window.BridgeParts.ENABLE_RTE = true;
|
window.BridgeParts.ENABLE_RTE = true;
|
||||||
|
window.BridgeParts.DEBUG_RTE = true;
|
||||||
window.BridgeParts.LOG_CONFIG = window.BridgeParts.LOG_CONFIG || {};
|
window.BridgeParts.LOG_CONFIG = window.BridgeParts.LOG_CONFIG || {};
|
||||||
window.BridgeParts.LOG_CONFIG.INFO_ENABLED = false;
|
window.BridgeParts.LOG_CONFIG.INFO_ENABLED = false;
|
||||||
window.BridgeParts.LOG_CONFIG.DATA_ENABLED = false;
|
window.BridgeParts.LOG_CONFIG.DATA_ENABLED = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user