This commit is contained in:
2026-01-16 01:24:53 +01:00
parent 31fd91d815
commit ef8b556b73
8 changed files with 23 additions and 16 deletions

View File

@@ -698,7 +698,7 @@
});
}
if (!editor.Commands.get('bridge-open-richtext')) {
if (editor.Commands && editor.Commands.add) {
editor.Commands.add('bridge-open-richtext', {
run(ed, sender, opts = {}) {
if (sender && sender.set) sender.set('active', 0);
@@ -961,7 +961,7 @@
modal.open();
};
if (!editor.Commands.get('bridge-table:edit')) {
if (editor.Commands && editor.Commands.add) {
editor.Commands.add('bridge-table:edit', {
run(ed, sender, opts = {}) {
if (sender && sender.set) sender.set('active', 0);
@@ -1109,9 +1109,7 @@
});
const ensurePlaceholderCommandStub = (editor) => {
if (!editor || !editor.Commands) return;
const existing = editor.Commands.get && editor.Commands.get('bridge-placeholder:edit');
if (existing) return;
if (!editor || !editor.Commands || !editor.Commands.add) return;
editor.Commands.add('bridge-placeholder:edit', {
__bridgePlaceholderStub: true,
run(ed, sender, opts = {}) {