Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Commit

Permalink
Other: Added pluginName property.
Browse files Browse the repository at this point in the history
  • Loading branch information
scofalik committed Oct 10, 2019
1 parent ec56ab9 commit 1e8c2c6
Show file tree
Hide file tree
Showing 8 changed files with 44 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/fontbackgroundcolor/fontbackgroundcolorediting.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,13 @@ import { FONT_BACKGROUND_COLOR, renderDowncastElement, renderUpcastAttribute } f
* @extends module:core/plugin~Plugin
*/
export default class FontBackgroundColorEditing extends Plugin {
/**
* @inheritDoc
*/
static get pluginName() {
return 'FontBackgroundColorEditing';
}

/**
* @inheritDoc
*/
Expand Down
7 changes: 7 additions & 0 deletions src/fontcolor/fontcolorediting.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,13 @@ import { FONT_COLOR, renderDowncastElement, renderUpcastAttribute } from '../uti
* @extends module:core/plugin~Plugin
*/
export default class FontColorEditing extends Plugin {
/**
* @inheritDoc
*/
static get pluginName() {
return 'FontColorEditing';
}

/**
* @inheritDoc
*/
Expand Down
7 changes: 7 additions & 0 deletions src/fontfamily/fontfamilyediting.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@ import { buildDefinition, FONT_FAMILY } from '../utils';
* @extends module:core/plugin~Plugin
*/
export default class FontFamilyEditing extends Plugin {
/**
* @inheritDoc
*/
static get pluginName() {
return 'FontFamilyEditing';
}

/**
* @inheritDoc
*/
Expand Down
7 changes: 7 additions & 0 deletions src/fontsize/fontsizeediting.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,13 @@ import { buildDefinition, FONT_SIZE } from '../utils';
* @extends module:core/plugin~Plugin
*/
export default class FontSizeEditing extends Plugin {
/**
* @inheritDoc
*/
static get pluginName() {
return 'FontSizeEditing';
}

/**
* @inheritDoc
*/
Expand Down
4 changes: 4 additions & 0 deletions tests/fontbackgroundcolor/fontbackgroundcoloreditng.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 4 additions & 0 deletions tests/fontcolor/fontcolorediting.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 4 additions & 0 deletions tests/fontfamily/fontfamilyediting.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 4 additions & 0 deletions tests/fontsize/fontsizeediting.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 1e8c2c6

Please sign in to comment.