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