Procházet zdrojové kódy

Docs: Final fixes in autolink docs. [skip ci]

Anna Tomanek před 5 roky
rodič
revize
4e0c91a3cf

+ 3 - 3
packages/ckeditor5-link/docs/_snippets/features/autolink.html

@@ -1,5 +1,5 @@
 <div id="snippet-autolink">
-	<p>Press Space after a link to see the magic of autolinking: https://ckeditor.com/</p>
-	<p>This function will link to e-mail addresses too: example@example.com</p><p>This feature also works with e-mail addresses: example@example.com</p>
-	<p>You can use Enter or Shift+Enter to achieve the same result: https://ckeditor.com/</p>
+	<p>Press <i>Space</i> after a link to see the magic of autolinking: https://ckeditor.com/</p>
+	<p>This feature also works with e-mail addresses: example@example.com</p>
+	<p>You can use <i>Enter</i> or <i>Shift+Enter</i> to achieve the same result: https://ckeditor.com/</p>
 </div>

+ 2 - 0
packages/ckeditor5-link/docs/features/link.md

@@ -7,6 +7,8 @@ category: features
 
 The {@link module:link/link~Link} feature brings support for link editing to the rich-text editor. It allows for inserting hyperlinks into the edited content and offers the UI to create and edit them.
 
+After you enable the optional [autolink](#autolink-feature) plugin, typed or pasted URL and e-mail addresses will be automatically turned into working links as you type.
+
 ## Demo
 
 You can edit existing links by clicking them and using the balloon. Use the Link toolbar button or press <kbd>Ctrl/⌘</kbd>+<kbd>K</kbd> to create a new link.

+ 2 - 2
packages/ckeditor5-link/src/autolink.js

@@ -184,7 +184,7 @@ export default class AutoLink extends Plugin {
 	}
 
 	/**
-	 * Checks passed range if it contains a linkable text.
+	 * Checks if the passed range contains a linkable text.
 	 *
 	 * @param {module:engine/model/range~Range} rangeToCheck
 	 * @private
@@ -206,7 +206,7 @@ export default class AutoLink extends Plugin {
 	}
 
 	/**
-	 * Applies link on a given range.
+	 * Applies a link on a given range.
 	 *
 	 * @param {String} url The URL to link.
 	 * @param {module:engine/model/range~Range} range The text range to apply the link attribute to.