Selaa lähdekoodia

Other: Added `pluginName` property to editing plugin.

Szymon Cofalik 6 vuotta sitten
vanhempi
commit
8bfb96dfc4

+ 7 - 0
packages/ckeditor5-heading/src/headingediting.js

@@ -26,6 +26,13 @@ export default class HeadingEditing extends Plugin {
 	/**
 	 * @inheritDoc
 	 */
+	static get pluginName() {
+		return 'HeadingEditing';
+	}
+
+	/**
+	 * @inheritDoc
+	 */
 	constructor( editor ) {
 		super( editor );
 

+ 4 - 0
packages/ckeditor5-heading/tests/headingediting.js

@@ -25,6 +25,10 @@ describe( 'HeadingEditing', () => {
 			} );
 	} );
 
+	it( 'should have pluginName', () => {
+		expect( HeadingEditing.pluginName ).to.equal( 'HeadingEditing' );
+	} );
+
 	it( 'should be loaded', () => {
 		expect( editor.plugins.get( HeadingEditing ) ).to.be.instanceOf( HeadingEditing );
 	} );