From 68be70f9e292832e8ef1dd0ab04bac4f33f4c7f5 Mon Sep 17 00:00:00 2001 From: muguilin <“muguilin@foxmail.com> Date: Mon, 8 Jun 2020 18:56:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20=E7=82=B9=E5=87=BB?= =?UTF-8?q?=E5=9B=BE=E7=89=87=E4=BB=A5=E5=90=8E=E8=BF=9B=E5=85=A5=E5=9B=BE?= =?UTF-8?q?=E7=89=87=E7=BC=96=E8=BE=91=E7=8A=B6=E6=80=81=EF=BC=8C=E7=84=B6?= =?UTF-8?q?=E5=90=8E=E5=86=8D=E7=82=B9=E5=87=BB=E5=85=B6=E4=BB=96=E6=9C=89?= =?UTF-8?q?=E6=96=87=E5=AD=97=E7=9A=84=E5=9C=B0=E6=96=B9=EF=BC=8C=E4=B8=8D?= =?UTF-8?q?=E8=83=BD=E8=8E=B7=E5=BE=97=E7=84=A6=E7=82=B9=E9=97=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ueditor.all.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/ueditor.all.js b/ueditor.all.js index e66a555..9e8206c 100644 --- a/ueditor.all.js +++ b/ueditor.all.js @@ -16763,6 +16763,7 @@ cover.id = me.editor.ui.id + '_imagescale_cover'; cover.style.cssText = 'position:absolute;display:none;z-index:' + (me.editor.options.zIndex) + ';filter:alpha(opacity=0); opacity:0;background:#CCC;'; + me.coverId = cover.id; domUtils.on(cover, 'mousedown click', function(event) { var ev = event || window.event; ev.stopPropagation(); @@ -16916,9 +16917,14 @@ /* * 修复图片编辑工具栏不隐藏问题! * 穆贵林 - * 2020-03-05 13:20:32 + * 2020-06-08 18:20:32 * 原来没有:是新添加的, */ + + //修复 点击图片以后进入图片编辑状态,然后再点击其他有文字的地方,不能获得焦点问。 + var cover = document.querySelector('#'+ this.coverId); + cover.style = cover.style.cssText + 'z-index: -1;'; + setTimeout(() => { var dom = document.querySelector('.edui-anchor-topleft'); dom.style = dom.style.cssText + 'display: none;';