diff --git a/config/current.ver b/config/current.ver index 984b51a..54c1137 100644 --- a/config/current.ver +++ b/config/current.ver @@ -1 +1 @@ -1.1.65 \ No newline at end of file +1.1.66 \ No newline at end of file diff --git a/public/editor/bridge-core.js b/public/editor/bridge-core.js index 80408c0..c1158d7 100644 --- a/public/editor/bridge-core.js +++ b/public/editor/bridge-core.js @@ -896,7 +896,8 @@ all.forEach((action) => { const id = getId(action); if (!id) return; - if (allowed.has(id) || String(id).toLowerCase().includes('placeholder')) return; + const lower = String(id).toLowerCase(); + if (allowed.has(id) || lower.includes('placeholder')) return; if (typeof rte.remove === 'function') { rte.remove(id); } @@ -968,6 +969,11 @@ setupPlainTextPreserver(ed); } configureInlineRte(ed); + if (ed && ed.on) { + ed.on('load', () => configureInlineRte(ed)); + ed.on('rte:custom', () => configureInlineRte(ed)); + ed.on('rte:enable', () => configureInlineRte(ed)); + } setupBlurLogger(ed); loadDynamicFonts();