update: 优化只读状态下,单击图片放大

This commit is contained in:
yanmao 2022-02-14 14:11:47 +08:00
parent b0391837d7
commit f40b4022ee
1 changed files with 1 additions and 1 deletions

View File

@ -598,7 +598,7 @@ class Image {
this.maximize.hide();
});
}
if (!isEngine(this.editor)) {
if (!isEngine(this.editor) || this.editor.readonly) {
const link = this.image.closest('a');
if (link.length === 0) {
this.image.on('click', (event) => this.openZoom(event));