Преглед на файлове

Aligned LinkEditing to the latest bindTwoStepCaretToAttribute() helper API.

Aleksander Nowodzinski преди 6 години
родител
ревизия
44fc342594
променени са 1 файла, в които са добавени 7 реда и са изтрити 1 реда
  1. 7 1
      packages/ckeditor5-link/src/linkediting.js

+ 7 - 1
packages/ckeditor5-link/src/linkediting.js

@@ -84,7 +84,13 @@ export default class LinkEditing extends Plugin {
 		this._enableManualDecorators( linkDecorators.filter( item => item.mode === DECORATOR_MANUAL ) );
 
 		// Enable two-step caret movement for `linkHref` attribute.
-		bindTwoStepCaretToAttribute( editor.editing.view, editor.model, this, 'linkHref', locale.contentLanguageDirection );
+		bindTwoStepCaretToAttribute( {
+			view: editor.editing.view,
+			model: editor.model,
+			emitter: this,
+			attribute: 'linkHref',
+			contentDirection: locale.contentLanguageDirection
+		} );
 
 		// Setup highlight over selected link.
 		this._setupLinkHighlight();