asdasd
This commit is contained in:
@@ -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 = {}) {
|
||||
|
||||
Reference in New Issue
Block a user