diff --git a/package.json b/package.json index 69e003f..fcfeabb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ckeditor-imgresize", - "version": "1.0.10", + "version": "1.0.11", "description": "CKEditor dragable image resizing with support divarea", "keywords": [ "ckeditor", diff --git a/plugin.js b/plugin.js index 7bd9ea7..eceb0c8 100644 --- a/plugin.js +++ b/plugin.js @@ -166,7 +166,7 @@ this._wrapper.on('drag:drag', this._onDragDrag, this); this._wrapper.on('drag:stop', this._onDragStop, this); this._wrapper.on('mousedown', this._initDrag, this, null, 0); - this._wrapper.once('blur', this._hideWrapper, this, null, 0); + this._wrapper.once('blur', this._hideWrapper, this, { 'restoreFocus': true }, 0); this._wrapper.once('keydown', this._onKeydown, this, null, 0); for (var eventName in this._editorHideEvents) {