Selaa lähdekoodia

Other: Added `pluginName` to editing plugin.

Szymon Cofalik 6 vuotta sitten
vanhempi
commit
ed67104902

+ 7 - 0
packages/ckeditor5-table/src/tableediting.js

@@ -46,6 +46,13 @@ export default class TableEditing extends Plugin {
 	/**
 	 * @inheritDoc
 	 */
+	static get pluginName() {
+		return 'TableEditing';
+	}
+
+	/**
+	 * @inheritDoc
+	 */
 	init() {
 		const editor = this.editor;
 		const model = editor.model;

+ 4 - 0
packages/ckeditor5-table/tests/tableediting.js

@@ -41,6 +41,10 @@ describe( 'TableEditing', () => {
 		editor.destroy();
 	} );
 
+	it( 'should have pluginName', () => {
+		expect( TableEditing.pluginName ).to.equal( 'TableEditing' );
+	} );
+
 	it( 'should set proper schema rules', () => {
 		// Table:
 		expect( model.schema.isRegistered( 'table' ) ).to.be.true;