asd
This commit is contained in:
@@ -1233,6 +1233,12 @@
|
||||
ed.loadProjectData(parsedState);
|
||||
applied = true;
|
||||
log('CONTENT', 'JSON-Projektzustand angewendet.', 'orange');
|
||||
const hasComponents = ed.getComponents && ed.getComponents().length > 0;
|
||||
const hasHtml = (ed.getHtml && ed.getHtml().trim()) ? true : false;
|
||||
if (!hasComponents && !hasHtml && html) {
|
||||
log('CONTENT WARN', 'JSON geladen aber leer, wechsle auf HTML-Fallback.', 'orange', 'warn');
|
||||
applied = false;
|
||||
}
|
||||
} catch (e) {
|
||||
log('CONTENT ERROR', `JSON loadProjectData Fehler: ${e.message}`, 'red', 'error');
|
||||
if (!html) {
|
||||
|
||||
Reference in New Issue
Block a user