8
0
Просмотр исходного кода

Updated escPressHandler and clickOutsideHandler options to match the latest API.

Aleksander Nowodziński 9 лет назад
Родитель
Сommit
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.
 		escPressHandler( {
-			controller: balloonPanelView,
+			emitter: balloonPanelView,
 			model: balloonPanelView,
 			activeIf: 'isVisible',
 			callback: () => this._hidePanel( true )
@@ -171,7 +171,7 @@ export default class Link extends Feature {
 
 		// Close on click outside of balloon panel element.
 		clickOutsideHandler( {
-			controller: balloonPanelView,
+			emitter: balloonPanelView,
 			model: balloonPanelView,
 			activeIf: 'isVisible',
 			contextElement: balloonPanelView.element,