@worktile/theia 15.1.18 → 15.1.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/interfaces/image.mjs +1 -1
- package/esm2020/plugins/image/image.component.mjs +7 -2
- package/fesm2015/worktile-theia.mjs +6 -1
- package/fesm2015/worktile-theia.mjs.map +1 -1
- package/fesm2020/worktile-theia.mjs +6 -1
- package/fesm2020/worktile-theia.mjs.map +1 -1
- package/interfaces/image.d.ts +1 -1
- package/package.json +1 -1
|
@@ -8367,7 +8367,12 @@ class TheImageComponent extends TheBaseElementComponent {
|
|
|
8367
8367
|
}
|
|
8368
8368
|
super.ngOnInit();
|
|
8369
8369
|
this.imagePluginOptions = getPluginOptions(this.editor, PluginKeys.image);
|
|
8370
|
-
this.disablePreview
|
|
8370
|
+
if (this.imagePluginOptions.disablePreview && typeof this.imagePluginOptions.disablePreview === 'function') {
|
|
8371
|
+
this.disablePreview = this.imagePluginOptions.disablePreview(this.editor);
|
|
8372
|
+
}
|
|
8373
|
+
else {
|
|
8374
|
+
this.disablePreview = this.imagePluginOptions.disablePreview;
|
|
8375
|
+
}
|
|
8371
8376
|
}
|
|
8372
8377
|
imageClick() {
|
|
8373
8378
|
const index = this.imageGroupComponent.images.findIndex(item => item === this.imageDirective);
|