Parcourir la source

Rename tablestyles to tableproperties manual tests.

Maciej Gołaszewski il y a 6 ans
Parent
commit
0c3410f8a1

+ 0 - 28
packages/ckeditor5-table/src/tablestyle.js

@@ -1,28 +0,0 @@
-/**
- * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
- */
-
-/**
- * @module table/tablestyle
- */
-
-import Plugin from '@ckeditor/ckeditor5-core/src/plugin';
-import TableStyleUI from './tablestyleui';
-import TableProperties from './tableproperites';
-import TableCellProperties from './tablecellproperites';
-import TableColumnRowProperties from './tablecolumnrowproperites';
-
-/**
- * The table style feature.
- *
- * @extends module:core/plugin~Plugin
- */
-export default class TableStyle extends Plugin {
-	/**
-	 * @inheritDoc
-	 */
-	static get requires() {
-		return [ TableProperties, TableCellProperties, TableColumnRowProperties, TableStyleUI ];
-	}
-}

packages/ckeditor5-table/tests/manual/tablestyles.html → packages/ckeditor5-table/tests/manual/tableproperties.html


+ 6 - 2
packages/ckeditor5-table/tests/manual/tablestyles.js

@@ -10,7 +10,10 @@ import ArticlePluginSet from '@ckeditor/ckeditor5-core/tests/_utils/articleplugi
 import Alignment from '@ckeditor/ckeditor5-alignment/src/alignment';
 import IndentBlock from '@ckeditor/ckeditor5-indent/src/indentblock';
 import Indent from '@ckeditor/ckeditor5-indent/src/indent';
-import TableStyle from '../../src/tablestyle';
+import TableProperties from '../../src/tableproperites';
+import TableCellProperties from '../../src/tablecellproperites';
+import TableColumnRowProperties from '../../src/tablecolumnrowproperites';
+import TableStyleUI from '../../src/tablestyleui';
 
 const sourceElement = document.querySelector( '#editor' );
 const clonedSource = sourceElement.cloneNode( true );
@@ -19,7 +22,8 @@ document.querySelector( '#cloned-source' ).append( ...clonedSource.childNodes );
 
 ClassicEditor
 	.create( sourceElement, {
-		plugins: [ ArticlePluginSet, Alignment, Indent, IndentBlock, TableStyle ],
+		plugins: [ ArticlePluginSet, Alignment, Indent, IndentBlock, TableProperties, TableColumnRowProperties, TableCellProperties,
+			TableStyleUI ],
 		toolbar: [
 			'heading', '|', 'insertTable', '|', 'bold', 'italic', 'bulletedList', 'numberedList', 'blockQuote', 'undo', 'redo'
 		],

packages/ckeditor5-table/tests/manual/tablestyles.md → packages/ckeditor5-table/tests/manual/tableproperties.md