update: 优化只读状态下,单击图片放大
This commit is contained in:
parent
b0391837d7
commit
f40b4022ee
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue