8
0
Piotrek Koszuliński 7 лет назад
Родитель
Сommit
d3b387eea0

+ 2 - 2
packages/ckeditor5-table/src/commands/mergecellcommand.js

@@ -33,7 +33,7 @@ export default class MergeCellCommand extends Command {
 		 * The direction indicates which cell will be merged to currently selected one.
 		 *
 		 * @readonly
-		 * @member {String} module:table/commands/mergecellcommand~MergeCellCommand#direction
+		 * @member {String} #direction
 		 */
 		this.direction = options.direction;
 
@@ -41,7 +41,7 @@ export default class MergeCellCommand extends Command {
 		 * Whether the merge is horizontal (left/right) or vertical (up/down).
 		 *
 		 * @readonly
-		 * @member {Boolean} module:table/commands/mergecellcommand~MergeCellCommand#isHorizontal
+		 * @member {Boolean} #isHorizontal
 		 */
 		this.isHorizontal = this.direction == 'right' || this.direction == 'left';
 	}

+ 11 - 2
packages/ckeditor5-table/src/commands/splitcellcommand.js

@@ -17,12 +17,21 @@ import TableUtils from '../tableutils';
  */
 export default class SplitCellCommand extends Command {
 	/**
-	 * @param editor
-	 * @param options
+	 * Creates a new `SplitCellCommand` instance.
+	 *
+	 * @param {module:core/editor/editor~Editor} editor Editor on which this command will be used.
+	 * @param {Object} options
+	 * @param {String} options.direction Indicates whether the command should split cells `'horizontally'` or `'vertically'`.
 	 */
 	constructor( editor, options = {} ) {
 		super( editor );
 
+		/**
+		 * The direction indicates which cell will be split.
+		 *
+		 * @readonly
+		 * @member {String} #direction
+		 */
 		this.direction = options.direction || 'horizontally';
 	}
 

+ 2 - 2
packages/ckeditor5-table/src/commands/utils.js

@@ -10,8 +10,8 @@
 /**
  * Returns parent table.
  *
- * @param {module:engine/model/position} position
- * @returns {*}
+ * @param {module:engine/model/position~Position} position
+ * @returns {module:engine/model/element~Element|module:engine/model/documentfragment~DocumentFragment}
  */
 export function getParentTable( position ) {
 	let parent = position.parent;

+ 1 - 1
packages/ckeditor5-table/src/tableutils.js

@@ -51,7 +51,7 @@ export default class TableUtils extends Plugin {
 	 *		// will return { row: 1, column: 3 }
 	 *
 	 * @param {module:engine/model/element~Element} tableCell
-	 * @returns {{row, column}}
+	 * @returns {Object} Returns a `{row, column}` object.
 	 */
 	getCellLocation( tableCell ) {
 		const tableRow = tableCell.parent;