This commit is contained in:
2026-01-16 01:15:00 +01:00
parent f265e3b3e1
commit ecb948606e
2 changed files with 19 additions and 1 deletions

View File

@@ -1041,7 +1041,8 @@ const refreshPlaceholderComponent = (component) => {
fetchPlaceholderSchema().catch(() => {});
}
if (!editor.Commands.get('bridge-placeholder:edit')) {
const existingCmd = editor.Commands.get('bridge-placeholder:edit');
if (!existingCmd || existingCmd.__bridgePlaceholderStub) {
editor.Commands.add('bridge-placeholder:edit', {
run(ed, sender, opts = {}) {
const component = opts.component || ed.getSelected();