We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 99660d9 commit 932f4e8Copy full SHA for 932f4e8
1 file changed
plugins/ckeditor5-woltlab-image/src/woltlabimage.ts
@@ -152,9 +152,9 @@ export class WoltlabImage extends Plugin {
152
);
153
}
154
155
- #decorateCommand(command: Command) {
+ #decorateCommand(command: Command | undefined) {
156
const imageUtils: ImageUtils = this.editor.plugins.get("ImageUtils");
157
- command.on<ObservableSetEvent<boolean>>(
+ command?.on<ObservableSetEvent<boolean>>(
158
"set:isEnabled",
159
(evt, _, value) => {
160
if (!value) {
0 commit comments