From f40b4022eecffce3c5c9d93a2cdbd169a969bc94 Mon Sep 17 00:00:00 2001 From: yanmao <55792257+yanmao-cc@users.noreply.github.com> Date: Mon, 14 Feb 2022 14:11:47 +0800 Subject: [PATCH] =?UTF-8?q?update:=20=E4=BC=98=E5=8C=96=E5=8F=AA=E8=AF=BB?= =?UTF-8?q?=E7=8A=B6=E6=80=81=E4=B8=8B=EF=BC=8C=E5=8D=95=E5=87=BB=E5=9B=BE?= =?UTF-8?q?=E7=89=87=E6=94=BE=E5=A4=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/image/src/component/image/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/image/src/component/image/index.ts b/plugins/image/src/component/image/index.ts index 733912dc..2033023b 100644 --- a/plugins/image/src/component/image/index.ts +++ b/plugins/image/src/component/image/index.ts @@ -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));