Browse Source

Code refactoring.

Aleksander Nowodzinski 5 years ago
parent
commit
134a39dda3

+ 0 - 8
packages/ckeditor5-table/src/tableproperties.js

@@ -8,7 +8,6 @@
  */
 
 import Plugin from '@ckeditor/ckeditor5-core/src/plugin';
-import TablePropertiesUI from './tablepropertiesui';
 import { downcastTableAttribute, upcastAttribute, upcastBorderStyles } from './tableproperties/utils';
 
 /**
@@ -27,13 +26,6 @@ export default class TableProperties extends Plugin {
 	/**
 	 * @inheritDoc
 	 */
-	static get requires() {
-		return [ TablePropertiesUI ];
-	}
-
-	/**
-	 * @inheritDoc
-	 */
 	afterInit() {
 		const editor = this.editor;
 		const schema = editor.model.schema;

+ 0 - 45
packages/ckeditor5-table/src/tablepropertiesui.js

@@ -1,45 +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/tablepropertiesui
- */
-
-import Plugin from '@ckeditor/ckeditor5-core/src/plugin';
-import ButtonView from '@ckeditor/ckeditor5-ui/src/button/buttonview';
-
-import tableProperties from './../theme/icons/table-properties.svg';
-
-/**
- * TODO
- *
- * @extends module:core/plugin~Plugin
- */
-export default class TablePropertiesUI extends Plugin {
-	/**
-	 * @inheritDoc
-	 */
-	init() {
-		const editor = this.editor;
-		const t = editor.t;
-
-		editor.ui.componentFactory.add( 'tableProperties', locale => {
-			const view = new ButtonView( locale );
-
-			view.set( {
-				label: t( 'Table properties' ),
-				icon: tableProperties,
-				tooltip: true
-			} );
-
-			this.listenTo( view, 'execute', () => this._showUI() );
-
-			return view;
-		} );
-	}
-
-	_showUI() {
-	}
-}

+ 1 - 1
packages/ckeditor5-table/tests/manual/tableproperties.js

@@ -30,7 +30,7 @@ ClassicEditor
 			'heading', '|', 'insertTable', '|', 'bold', 'italic', 'bulletedList', 'numberedList', 'blockQuote', 'undo', 'redo'
 		],
 		table: {
-			contentToolbar: [ 'tableColumn', 'tableRow', 'mergeTableCells', 'tableProperties', 'tableCellProperties' ],
+			contentToolbar: [ 'tableColumn', 'tableRow', 'mergeTableCells', 'tableCellProperties' ],
 			tableToolbar: [ 'bold', 'italic' ]
 		}
 	} )