瀏覽代碼

Other: Added `pluginName` property.

Szymon Cofalik 6 年之前
父節點
當前提交
41e6dade74

+ 7 - 0
packages/ckeditor5-font/src/fontbackgroundcolor/fontbackgroundcolorediting.js

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

+ 7 - 0
packages/ckeditor5-font/src/fontcolor/fontcolorediting.js

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

+ 7 - 0
packages/ckeditor5-font/src/fontfamily/fontfamilyediting.js

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

+ 7 - 0
packages/ckeditor5-font/src/fontsize/fontsizeediting.js

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

+ 4 - 0
packages/ckeditor5-font/tests/fontbackgroundcolor/fontbackgroundcoloreditng.js

@@ -29,6 +29,10 @@ describe( 'FontBackgroundColorEditing', () => {
 		editor.destroy();
 	} );
 
+	it( 'should have pluginName', () => {
+		expect( FontBackgroundColorEditing.pluginName ).to.equal( 'FontBackgroundColorEditing' );
+	} );
+
 	it( 'should set proper schema rules', () => {
 		expect( editor.model.schema.checkAttribute( [ '$block', '$text' ], 'fontBackgroundColor' ) ).to.be.true;
 		expect( editor.model.schema.checkAttribute( [ '$clipboardHolder', '$text' ], 'fontBackgroundColor' ) ).to.be.true;

+ 4 - 0
packages/ckeditor5-font/tests/fontcolor/fontcolorediting.js

@@ -29,6 +29,10 @@ describe( 'FontColorEditing', () => {
 		editor.destroy();
 	} );
 
+	it( 'should have pluginName', () => {
+		expect( FontColorEditing.pluginName ).to.equal( 'FontColorEditing' );
+	} );
+
 	it( 'should set proper schema rules', () => {
 		expect( editor.model.schema.checkAttribute( [ '$block', '$text' ], 'fontColor' ) ).to.be.true;
 		expect( editor.model.schema.checkAttribute( [ '$clipboardHolder', '$text' ], 'fontColor' ) ).to.be.true;

+ 4 - 0
packages/ckeditor5-font/tests/fontfamily/fontfamilyediting.js

@@ -29,6 +29,10 @@ describe( 'FontFamilyEditing', () => {
 		editor.destroy();
 	} );
 
+	it( 'should have pluginName', () => {
+		expect( FontFamilyEditing.pluginName ).to.equal( 'FontFamilyEditing' );
+	} );
+
 	it( 'should set proper schema rules', () => {
 		expect( editor.model.schema.checkAttribute( [ '$block', '$text' ], 'fontFamily' ) ).to.be.true;
 		expect( editor.model.schema.checkAttribute( [ '$clipboardHolder', '$text' ], 'fontFamily' ) ).to.be.true;

+ 4 - 0
packages/ckeditor5-font/tests/fontsize/fontsizeediting.js

@@ -29,6 +29,10 @@ describe( 'FontSizeEditing', () => {
 		editor.destroy();
 	} );
 
+	it( 'should have pluginName', () => {
+		expect( FontSizeEditing.pluginName ).to.equal( 'FontSizeEditing' );
+	} );
+
 	it( 'should set proper schema rules', () => {
 		expect( editor.model.schema.checkAttribute( [ '$block', '$text' ], 'fontSize' ) ).to.be.true;
 		expect( editor.model.schema.checkAttribute( [ '$clipboardHolder', '$text' ], 'fontSize' ) ).to.be.true;