diff --git a/public/editor/bridge-core.js b/public/editor/bridge-core.js index e536ddf..e07577c 100644 --- a/public/editor/bridge-core.js +++ b/public/editor/bridge-core.js @@ -1104,14 +1104,18 @@ } return false; }; - if (!ensurePlaceholderRte()) { - const fallbackSrc = B.BASE_PATH_BRIDGE + 'blocks-placeholder.js'; - log('PLACEHOLDER LOAD', 'Placeholder-RTE wird geladen.', '#B45309', 'warn'); - loadScript(fallbackSrc, () => { - if (!ensurePlaceholderRte()) { - log('PLACEHOLDER ERROR', 'Placeholder-RTE konnte nicht initialisiert werden.', 'red', 'error'); - } - }); + if (!B.DISABLE_PLACEHOLDERS) { + if (!ensurePlaceholderRte()) { + const fallbackSrc = B.BASE_PATH_BRIDGE + 'blocks-placeholder.js'; + log('PLACEHOLDER LOAD', 'Placeholder-RTE wird geladen.', '#B45309', 'warn'); + loadScript(fallbackSrc, () => { + if (!ensurePlaceholderRte()) { + log('PLACEHOLDER ERROR', 'Placeholder-RTE konnte nicht initialisiert werden.', 'red', 'error'); + } + }); + } + } else { + log('PLACEHOLDER SKIP', 'Placeholder-RTE deaktiviert (Test).', '#B45309', 'warn'); } // --------------------------------------------------- diff --git a/public/editor/editor-core.php b/public/editor/editor-core.php index 63d0246..2b6d992 100644 --- a/public/editor/editor-core.php +++ b/public/editor/editor-core.php @@ -53,6 +53,7 @@ if ($fontSources) { window.BridgeParts.API_KERNEL_URL = window.BridgeParts.API_KERNEL_URL || '/api.php'; window.BridgeParts.API_BASE = window.BridgeParts.API_BASE || window.BridgeParts.API_KERNEL_URL; window.BridgeParts.STORAGE_URL_BASE = window.BridgeParts.STORAGE_URL_BASE || window.BridgeParts.API_BASE; + window.BridgeParts.DISABLE_PLACEHOLDERS = true; window.BridgeParts.RTE_FONTS = window.BridgeParts.RTE_FONTS || [ { label: 'Kids Handwriting', value: "'Kids Handwriting', 'Comic Sans MS', cursive" }, { label: 'Arial', value: 'Arial, sans-serif' },