Explorar o código

Other: Add `pluginName` property to editing plugins.

Szymon Cofalik %!s(int64=6) %!d(string=hai) anos
pai
achega
c29292c501

+ 7 - 0
packages/ckeditor5-block-quote/src/blockquoteediting.js

@@ -19,6 +19,13 @@ import BlockQuoteCommand from './blockquotecommand';
  * @extends module:core/plugin~Plugin
  */
 export default class BlockQuoteEditing extends Plugin {
+	/**
+	 * @inheritDoc
+	 */
+	static get pluginName() {
+		return 'BlockQuoteEditing';
+	}
+
 	/**
 	 * @inheritDoc
 	 */

+ 4 - 0
packages/ckeditor5-block-quote/tests/blockquoteediting.js

@@ -31,6 +31,10 @@ describe( 'BlockQuoteEditing', () => {
 		return editor.destroy();
 	} );
 
+	it( 'should have pluginName', () => {
+		expect( BlockQuoteEditing.pluginName ).to.equal( 'BlockQuoteEditing' );
+	} );
+
 	it( 'adds a blockQuote command', () => {
 		expect( editor.commands.get( 'blockQuote' ) ).to.be.instanceOf( BlockQuoteCommand );
 	} );