浏览代码

Updated escPressHandler and clickOutsideHandler options to match the latest API.

Aleksander Nowodziński 9 年之前
父节点
当前提交
33729fdab4
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      packages/ckeditor5-link/src/link.js

+ 2 - 2
packages/ckeditor5-link/src/link.js

@@ -163,7 +163,7 @@ export default class Link extends Feature {
 
 
 		// Close on `ESC` press.
 		// Close on `ESC` press.
 		escPressHandler( {
 		escPressHandler( {
-			controller: balloonPanelView,
+			emitter: balloonPanelView,
 			model: balloonPanelView,
 			model: balloonPanelView,
 			activeIf: 'isVisible',
 			activeIf: 'isVisible',
 			callback: () => this._hidePanel( true )
 			callback: () => this._hidePanel( true )
@@ -171,7 +171,7 @@ export default class Link extends Feature {
 
 
 		// Close on click outside of balloon panel element.
 		// Close on click outside of balloon panel element.
 		clickOutsideHandler( {
 		clickOutsideHandler( {
-			controller: balloonPanelView,
+			emitter: balloonPanelView,
 			model: balloonPanelView,
 			model: balloonPanelView,
 			activeIf: 'isVisible',
 			activeIf: 'isVisible',
 			contextElement: balloonPanelView.element,
 			contextElement: balloonPanelView.element,