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

Re-word addLinkProtocolIfApplicable() docs.

Maciej 5 лет назад
Родитель
Сommit
66f2409241
1 измененных файлов с 6 добавлено и 2 удалено
  1. 6 2
      packages/ckeditor5-link/src/utils.js

+ 6 - 2
packages/ckeditor5-link/src/utils.js

@@ -154,8 +154,12 @@ export function isEmail( value ) {
 }
 
 /**
- * Adds protocol prefix to the specified link if doesn't contain it already
- * and there is 'defaultProtocol' config provided or link is an email.
+ * Adds protocol prefix to the specified `link` when:
+ *
+ * * it doesn't contain it already, and there is a {@link module:link/link~LinkConfig#defaultProtocol `defaultProtocol` }
+ * config value provided
+ * * or the link is an email address
+ *
  *
  * @params {String} link
  * @params {String} defaultProtocol