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

Docs: Added docs to the link plugin.

Aleksander Nowodzinski 7 лет назад
Родитель
Сommit
64767e5734
1 измененных файлов с 3 добавлено и 0 удалено
  1. 3 0
      packages/ckeditor5-link/src/link.js

+ 3 - 0
packages/ckeditor5-link/src/link.js

@@ -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();