Explorar el Código

Docs: Fixed links. [skip ci]

Piotrek Koszuliński hace 7 años
padre
commit
df7eabf42f

+ 1 - 1
packages/ckeditor5-engine/src/model/documentfragment.js

@@ -158,7 +158,7 @@ export default class DocumentFragment {
 
 	/**
 	 * Returns the starting offset of given child. Starting offset is equal to the sum of
-	 * {module:engine/model/node~Node#offsetSize offset sizes} of all node's siblings that are before it. Returns `null` if
+	 * {@link module:engine/model/node~Node#offsetSize offset sizes} of all node's siblings that are before it. Returns `null` if
 	 * given node is not a child of this document fragment.
 	 *
 	 * @param {module:engine/model/node~Node} node Child node to look for.

+ 1 - 1
packages/ckeditor5-engine/src/model/element.js

@@ -146,7 +146,7 @@ export default class Element extends Node {
 
 	/**
 	 * Returns the starting offset of given child. Starting offset is equal to the sum of
-	 * {module:engine/model/node~Node#offsetSize offset sizes} of all node's siblings that are before it. Returns `null` if
+	 * {@link module:engine/model/node~Node#offsetSize offset sizes} of all node's siblings that are before it. Returns `null` if
 	 * given node is not a child of this element.
 	 *
 	 * @param {module:engine/model/node~Node} node Child node to look for.

+ 1 - 1
packages/ckeditor5-engine/src/model/model.js

@@ -310,7 +310,7 @@ export default class Model {
 	 *			editor.model.insertContent( writer.createText( 'x' ), Position.createAt( doc.getRoot(), 2 ) );
 	 *		} );
 	 *
-	 * If an instance of {module:engine/model/selection~Selection} is passed as `selectable`
+	 * If an instance of {@link module:engine/model/selection~Selection} is passed as `selectable`
 	 * it will be moved to the target position (where the document selection should be moved after the insertion).
 	 *
 	 *		// Insert text replacing given selection instance.

+ 1 - 1
packages/ckeditor5-engine/src/model/nodelist.js

@@ -91,7 +91,7 @@ export default class NodeList {
 
 	/**
 	 * Returns the starting offset of given node. Starting offset is equal to the sum of
-	 * {module:engine/model/node~Node#offsetSize offset sizes} of all nodes that are before this node in this node list.
+	 * {@link module:engine/model/node~Node#offsetSize offset sizes} of all nodes that are before this node in this node list.
 	 *
 	 * @param {module:engine/model/node~Node} node Node to look for.
 	 * @returns {Number|null} Node's starting offset.

+ 2 - 1
packages/ckeditor5-engine/src/model/schema.js

@@ -1084,7 +1084,8 @@ export class SchemaContext {
 	 * 		// A string (element name).
 	 * 		const newContext = context.push( 'barElement' ); // [ '$root', 'barElement' ]
 	 *
-	 * **Note** {module:engine/model/node~Node} that is already in the model tree will be added as the only item (without ancestors).
+	 * **Note** {@link module:engine/model/node~Node} that is already in the model tree will be added as the only item
+	 * (without ancestors).
 	 *
 	 * @param {String|module:engine/model/node~Node|Array<String|module:engine/model/node~Node>} item An item that will be added
 	 * to the current context.

+ 1 - 1
packages/ckeditor5-engine/src/model/utils/insertcontent.js

@@ -19,7 +19,7 @@ import Selection from '../selection';
  * Inserts content into the editor (specified selection) as one would expect the paste
  * functionality to work.
  *
- * If an instance of {module:engine/model/selection~Selection} is passed as `selectable` it will be modified
+ * If an instance of {@link module:engine/model/selection~Selection} is passed as `selectable` it will be modified
  * to the insertion selection (equal to a range to be selected after insertion).
  *
  * **Note:** Use {@link module:engine/model/model~Model#insertContent} instead of this function.