Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Commit

Permalink
Aligned LinkEditing to the latest bindTwoStepCaretToAttribute() helpe…
Browse files Browse the repository at this point in the history
…r API.
  • Loading branch information
oleq committed Aug 8, 2019
1 parent 2b2d38a commit 62306e6
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/linkediting.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 62306e6

Please sign in to comment.