diff --git a/public/editor/bridge-core.js b/public/editor/bridge-core.js index 85f6f1a..0eed96a 100644 --- a/public/editor/bridge-core.js +++ b/public/editor/bridge-core.js @@ -1216,11 +1216,11 @@ }, }); }; - if (!B.DISABLE_EDITOR_EXTENSIONS) { + if (!B.DISABLE_EDITOR_EXTENSIONS && !B.DISABLE_EDITOR_BEHAVIOR) { ensureCommandStubs(ed); } - if (!B.DISABLE_EDITOR_EXTENSIONS) { + if (!B.DISABLE_EDITOR_EXTENSIONS && !B.DISABLE_EDITOR_BEHAVIOR) { try { const textTags = ['p','span','div','br','b','strong','i','em','u','a','ul','ol','li']; if (ed.Config) { @@ -1242,7 +1242,7 @@ } } - if (!B.DISABLE_EDITOR_EXTENSIONS) { + if (!B.DISABLE_EDITOR_EXTENSIONS && !B.DISABLE_EDITOR_BEHAVIOR) { setupTableBuilder(ed); setupPlainTextPreserver(ed); } diff --git a/public/editor/editor-core.php b/public/editor/editor-core.php index 496117d..e038d02 100644 --- a/public/editor/editor-core.php +++ b/public/editor/editor-core.php @@ -49,7 +49,8 @@ if ($fontSources) { window.__editorMode = ""; window.__editorId = ; window.BridgeParts = window.BridgeParts || {}; - window.BridgeParts.DISABLE_EDITOR_EXTENSIONS = true; + window.BridgeParts.DISABLE_EDITOR_EXTENSIONS = false; + window.BridgeParts.DISABLE_EDITOR_BEHAVIOR = true; window.BridgeParts.LOG_CONFIG = window.BridgeParts.LOG_CONFIG || {}; window.BridgeParts.LOG_CONFIG.INFO_ENABLED = false; window.BridgeParts.LOG_CONFIG.DATA_ENABLED = false;