This commit is contained in:
2026-01-31 00:45:22 +01:00
parent bc03561b44
commit ca175cd858
2 changed files with 8 additions and 2 deletions

View File

@@ -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();