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

Commit

Permalink
Docs: Added docs to the link plugin.
Browse files Browse the repository at this point in the history
  • Loading branch information
oleq committed Jan 31, 2018
1 parent 107ab4a commit 216bcc0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/link.js
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,9 @@ export default class Link extends Plugin {
// * the selection went to a different parent when creating a NEW link. E.g. someone
// else modified the document.
// * the selection has expanded (e.g. displaying link actions then pressing SHIFT+Right arrow).
//
// Note: #_getSelectedLinkElement will return a link for a non-collapsed selection only
// when fully selected.
if ( ( prevSelectedLink && !selectedLink ) ||
( !prevSelectedLink && selectionParent !== prevSelectionParent ) ) {
this._hideUI();
Expand Down

0 comments on commit 216bcc0

Please sign in to comment.