|
|
@@ -22,7 +22,7 @@ import cropTable from './tableselection/croptable';
|
|
|
import '../theme/tableselection.css';
|
|
|
|
|
|
/**
|
|
|
- * This plugin enables the advanced table cells/rows/columns selection.
|
|
|
+ * This plugin enables the advanced table cells, rows and columns selection.
|
|
|
* It is loaded automatically by the {@link module:table/table~Table} plugin.
|
|
|
*
|
|
|
* @extends module:core/plugin~Plugin
|
|
|
@@ -61,7 +61,7 @@ export default class TableSelection extends Plugin {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * Returns currently selected table cells or `null` if not a table cells selection.
|
|
|
+ * Returns the currently selected table cells or `null` if it is not a table cells selection.
|
|
|
*
|
|
|
* @returns {Array.<module:engine/model/element~Element>|null}
|
|
|
*/
|
|
|
@@ -83,7 +83,7 @@ export default class TableSelection extends Plugin {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * Returns a selected table fragment as a document fragment.
|
|
|
+ * Returns the selected table fragment as a document fragment.
|
|
|
*
|
|
|
* @returns {module:engine/model/documentfragment~DocumentFragment|null}
|
|
|
*/
|
|
|
@@ -105,10 +105,10 @@ export default class TableSelection extends Plugin {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * Defines a selection converter which marks selected cells with a specific class.
|
|
|
+ * Defines a selection converter which marks the selected cells with a specific class.
|
|
|
*
|
|
|
* The real DOM selection is put in the last cell. Since the order of ranges is dependent on whether the
|
|
|
- * selection is backward or not, the last cell with usually be close to the "focus" end of the selection
|
|
|
+ * selection is backward or not, the last cell will usually be close to the "focus" end of the selection
|
|
|
* (a selection has anchor and focus).
|
|
|
*
|
|
|
* The real DOM selection is then hidden with CSS.
|
|
|
@@ -151,8 +151,8 @@ export default class TableSelection extends Plugin {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * Enables making cells selection by Shift+click. Creates a selection from the cell which previously hold
|
|
|
- * the selection to the cell which was clicked (can be the same cell, in which case it selects a single cell).
|
|
|
+ * Enables making cells selection by <kbd>Shift</kbd>+click. Creates a selection from the cell which previously held
|
|
|
+ * the selection to the cell which was clicked. It can be the same cell, in which case it selects a single cell.
|
|
|
*
|
|
|
* @private
|
|
|
*/
|
|
|
@@ -217,7 +217,7 @@ export default class TableSelection extends Plugin {
|
|
|
/**
|
|
|
* Enables making cells selection by dragging.
|
|
|
*
|
|
|
- * The selection is made only on mousemove. We start tracking the mouse on mousedown.
|
|
|
+ * The selection is made only on mousemove. Mouse tracking is started on mousedown.
|
|
|
* However, the cells selection is enabled only after the mouse cursor left the anchor cell.
|
|
|
* Thanks to that normal text selection within one cell works just fine. However, you can still select
|
|
|
* just one cell by leaving the anchor cell and moving back to it.
|
|
|
@@ -293,7 +293,7 @@ export default class TableSelection extends Plugin {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * It overrides the default `model.deleteContent()` behavior over a selected table fragment.
|
|
|
+ * Overrides the default `model.deleteContent()` behavior over a selected table fragment.
|
|
|
*
|
|
|
* @private
|
|
|
* @param {module:utils/eventinfo~EventInfo} event
|
|
|
@@ -334,7 +334,7 @@ export default class TableSelection extends Plugin {
|
|
|
|
|
|
/**
|
|
|
* Sets the model selection based on given anchor and target cells (can be the same cell).
|
|
|
- * Takes care of setting backward flag.
|
|
|
+ * Takes care of setting the backward flag.
|
|
|
*
|
|
|
* @protected
|
|
|
* @param {module:engine/model/element~Element} anchorCell
|