Kaynağa Gözat

Feature: Added `pluginName` to the editor plugin part of the feature.

Szymon Cofalik 6 yıl önce
ebeveyn
işleme
8b7933aed9

+ 7 - 0
packages/ckeditor5-alignment/src/alignmentediting.js

@@ -18,6 +18,13 @@ import { isDefault, isSupported, supportedOptions } from './utils';
  * @extends module:core/plugin~Plugin
  */
 export default class AlignmentEditing extends Plugin {
+	/**
+	 * @inheritDoc
+	 */
+	static get pluginName() {
+		return 'AlignmentEditing';
+	}
+
 	/**
 	 * @inheritDoc
 	 */

+ 4 - 0
packages/ckeditor5-alignment/tests/alignmentediting.js

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