Skip to content

Commit

Permalink
修复 点击图片以后进入图片编辑状态,然后再点击其他有文字的地方,不能获得焦点问
Browse files Browse the repository at this point in the history
  • Loading branch information
muguilin committed Jun 8, 2020
1 parent ba584be commit 68be70f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion ueditor.all.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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;';
Expand Down

0 comments on commit 68be70f

Please sign in to comment.