Explorar el Código

Move table cell properties classes to own namespace.

Maciej Gołaszewski hace 5 años
padre
commit
a0f2a4079c

+ 4 - 3
packages/ckeditor5-table/src/tablecellproperties.js

@@ -9,13 +9,14 @@
 
 import Plugin from '@ckeditor/ckeditor5-core/src/plugin';
 
-import TableCellPropertiesEditing from './tablecellpropertiesediting';
+import TableCellPropertiesEditing from './tablecellproperties/tablecellpropertiesediting';
 
 /**
  * The table cell properties feature.
  *
- * This is a "glue" plugin which loads the {@link module:table/tablecellpropertiesediting~TableCellPropertiesEditing table editing feature}
- * and table UI feature.
+ * This is a "glue" plugin which loads the
+ * {@link module:table/tablecellproperties/tablecellpropertiesediting~TableCellPropertiesEditing table editing feature} and
+ * table UI feature.
  *
  * @extends module:core/plugin~Plugin
  */

+ 3 - 3
packages/ckeditor5-table/src/commands/tablecellbackgroundcolorcommand.js

@@ -4,17 +4,17 @@
  */
 
 /**
- * @module table/commands/tablecellbackgroundcolorcommand
+ * @module table/tablecellproperties/commands/tablecellbackgroundcolorcommand
  */
 
 import Command from '@ckeditor/ckeditor5-core/src/command';
 
-import { findAncestor } from './utils';
+import { findAncestor } from '../../commands/utils';
 
 /**
  * The table cell background color command.
  *
- * The command is registered by {@link module:table/tablecellpropertiesediting~TableCellPropertiesEditing} as
+ * The command is registered by {@link module:table/tablecellproperties/tablecellpropertiesediting~TableCellPropertiesEditing} as
  * `'tableCellBackgroundColor'` editor command.
  *
  * To change cell backgroundColor of the selected cell, execute the command:

+ 3 - 3
packages/ckeditor5-table/src/commands/tablecellbordercolorcommand.js

@@ -4,17 +4,17 @@
  */
 
 /**
- * @module table/commands/tablecellbordercolorcommand
+ * @module table/tablecellproperties/commands/tablecellbordercolorcommand
  */
 
 import Command from '@ckeditor/ckeditor5-core/src/command';
 
-import { findAncestor, getSingleValue } from './utils';
+import { findAncestor, getSingleValue } from '../../commands/utils';
 
 /**
  * The table cell border color command.
  *
- * The command is registered by {@link module:table/tablecellpropertiesediting~TableCellPropertiesEditing} as
+ * The command is registered by {@link module:table/tablecellproperties/tablecellpropertiesediting~TableCellPropertiesEditing} as
  * `'tableCellBorderColor'` editor command.
  *
  * To change cell border color of the selected cell, execute the command:

+ 3 - 3
packages/ckeditor5-table/src/commands/tablecellborderstylecommand.js

@@ -4,17 +4,17 @@
  */
 
 /**
- * @module table/commands/tablecellborderstylecommand
+ * @module table/tablecellproperties/commands/tablecellborderstylecommand
  */
 
 import Command from '@ckeditor/ckeditor5-core/src/command';
 
-import { findAncestor, getSingleValue } from './utils';
+import { findAncestor, getSingleValue } from '../../commands/utils';
 
 /**
  * The table cell border style command.
  *
- * The command is registered by {@link module:table/tablecellpropertiesediting~TableCellPropertiesEditing} as
+ * The command is registered by {@link module:table/tablecellproperties/tablecellpropertiesediting~TableCellPropertiesEditing} as
  * `'tableCellBorderStyle'` editor command.
  *
  * To change cell border style of the selected cell, execute the command:

+ 3 - 3
packages/ckeditor5-table/src/commands/tablecellborderwidthcommand.js

@@ -4,17 +4,17 @@
  */
 
 /**
- * @module table/commands/tablecellborderwidthcommand
+ * @module table/tablecellproperties/commands/tablecellborderwidthcommand
  */
 
 import Command from '@ckeditor/ckeditor5-core/src/command';
 
-import { findAncestor, getSingleValue } from './utils';
+import { findAncestor, getSingleValue } from '../../commands/utils';
 
 /**
  * The table cell border width command.
  *
- * The command is registered by {@link module:table/tablecellpropertiesediting~TableCellPropertiesEditing} as
+ * The command is registered by {@link module:table/tablecellproperties/tablecellpropertiesediting~TableCellPropertiesEditing} as
  * `'tableCellBorderWidth'` editor command.
  *
  * To change cell border width of the selected cell, execute the command:

+ 3 - 3
packages/ckeditor5-table/src/commands/tablecellheightcommand.js

@@ -4,17 +4,17 @@
  */
 
 /**
- * @module table/commands/tablecellheightcommand
+ * @module table/tablecellproperties/commands/tablecellheightcommand
  */
 
 import Command from '@ckeditor/ckeditor5-core/src/command';
 
-import { findAncestor } from './utils';
+import { findAncestor } from '../../commands/utils';
 
 /**
  * The table cell height command.
  *
- * The command is registered by {@link module:table/tablecellpropertiesediting~TableCellPropertiesEditing} as
+ * The command is registered by {@link module:table/tablecellproperties/tablecellpropertiesediting~TableCellPropertiesEditing} as
  * `'tableCellHeight'` editor command.
  *
  * To change cell height of the selected cell, execute the command:

+ 3 - 3
packages/ckeditor5-table/src/commands/tablecellhorizontalalignmentcommand.js

@@ -4,17 +4,17 @@
  */
 
 /**
- * @module table/commands/tablecellhorizontalalignmentcommand
+ * @module table/tablecellproperties/commands/tablecellhorizontalalignmentcommand
  */
 
 import Command from '@ckeditor/ckeditor5-core/src/command';
 
-import { findAncestor } from './utils';
+import { findAncestor } from '../../commands/utils';
 
 /**
  * The table cell horizontal alignment command.
  *
- * The command is registered by {@link module:table/tablecellpropertiesediting~TableCellPropertiesEditing} as
+ * The command is registered by {@link module:table/tablecellproperties/tablecellpropertiesediting~TableCellPropertiesEditing} as
  * `'tableCellHorizontalAlignment'` editor command.
  *
  * To change cell horizontal alignment of the selected cell, execute the command:

+ 3 - 3
packages/ckeditor5-table/src/commands/tablecellpaddingcommand.js

@@ -4,17 +4,17 @@
  */
 
 /**
- * @module table/commands/tablecellpaddingcommand
+ * @module table/tablecellproperties/commands/tablecellpaddingcommand
  */
 
 import Command from '@ckeditor/ckeditor5-core/src/command';
 
-import { findAncestor, getSingleValue } from './utils';
+import { findAncestor, getSingleValue } from '../../commands/utils';
 
 /**
  * The table cell padding command.
  *
- * The command is registered by {@link module:table/tablecellpropertiesediting~TableCellPropertiesEditing} as
+ * The command is registered by {@link module:table/tablecellproperties/tablecellpropertiesediting~TableCellPropertiesEditing} as
  * `'tableCellPadding'` editor command.
  *
  * To change cell padding of the selected cell, execute the command:

+ 3 - 3
packages/ckeditor5-table/src/commands/tablecellverticalalignmentcommand.js

@@ -4,17 +4,17 @@
  */
 
 /**
- * @module table/commands/tablecellverticalalignmentcommand
+ * @module table/tablecellproperties/commands/tablecellverticalalignmentcommand
  */
 
 import Command from '@ckeditor/ckeditor5-core/src/command';
 
-import { findAncestor } from './utils';
+import { findAncestor } from '../../commands/utils';
 
 /**
  * The table cell vertical alignment command.
  *
- * The command is registered by {@link module:table/tablecellpropertiesediting~TableCellPropertiesEditing} as
+ * The command is registered by {@link module:table/tablecellproperties/tablecellpropertiesediting~TableCellPropertiesEditing} as
  * `'tableCellVerticalAlignment'` editor command.
  *
  * To change cell vertical alignment of the selected cell, execute the command:

+ 3 - 3
packages/ckeditor5-table/src/commands/tablecellwidthcommand.js

@@ -4,17 +4,17 @@
  */
 
 /**
- * @module table/commands/tablecellwidthcommand
+ * @module table/tablecellproperties/commands/tablecellwidthcommand
  */
 
 import Command from '@ckeditor/ckeditor5-core/src/command';
 
-import { findAncestor } from './utils';
+import { findAncestor } from '../../commands/utils';
 
 /**
  * The table cell width command.
  *
- * The command is registered by {@link module:table/tablecellpropertiesediting~TableCellPropertiesEditing} as
+ * The command is registered by {@link module:table/tablecellproperties/tablecellpropertiesediting~TableCellPropertiesEditing} as
  * `'tableCellWidth'` editor command.
  *
  * To change cell width of the selected cell, execute the command:

+ 4 - 3
packages/ckeditor5-table/src/tablecellpropertiesediting.js

@@ -4,15 +4,16 @@
  */
 
 /**
- * @module table/tablecellpropertiesediting
+ * @module table/tablecellproperties/tablecellpropertiesediting
  */
 
 import Plugin from '@ckeditor/ckeditor5-core/src/plugin';
-import { downcastAttributeToStyle, upcastStyleToAttribute, upcastBorderStyles } from './converters/tableproperties';
 import { addBorderRules } from '@ckeditor/ckeditor5-engine/src/view/styles/border';
 import { addPaddingRules } from '@ckeditor/ckeditor5-engine/src/view/styles/padding';
 import { addBackgroundRules } from '@ckeditor/ckeditor5-engine/src/view/styles/background';
-import TableEditing from './tableediting';
+
+import { downcastAttributeToStyle, upcastStyleToAttribute, upcastBorderStyles } from './../converters/tableproperties';
+import TableEditing from './../tableediting';
 import TableCellPaddingCommand from './commands/tablecellpaddingcommand';
 import TableCellWidthCommand from './commands/tablecellwidthcommand';
 import TableCellHeightCommand from './commands/tablecellheightcommand';