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

Commit

Permalink
Internal: Special character plugins that define character now require…
Browse files Browse the repository at this point in the history
… base plugin out of the box, thus there's no need to explicitly require the base plugin.
  • Loading branch information
mlewand committed Nov 27, 2019
1 parent 0688423 commit d4208bc
Show file tree
Hide file tree
Showing 7 changed files with 54 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/specialcharactersarrows.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,18 @@
*/

import Plugin from '@ckeditor/ckeditor5-core/src/plugin';
import SpecialCharacters from './specialcharacters';

export default class SpecialCharactersArrows extends Plugin {
/**
* @inheritDoc
*/
static get requires() {
return [
SpecialCharacters
];
}

/**
* @inheritDoc
*/
Expand Down
10 changes: 10 additions & 0 deletions src/specialcharacterscurrency.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,18 @@
*/

import Plugin from '@ckeditor/ckeditor5-core/src/plugin';
import SpecialCharacters from './specialcharacters';

export default class SpecialCharactersCurrency extends Plugin {
/**
* @inheritDoc
*/
static get requires() {
return [
SpecialCharacters
];
}

/**
* @inheritDoc
*/
Expand Down
2 changes: 2 additions & 0 deletions src/specialcharactersessentials.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

import Plugin from '@ckeditor/ckeditor5-core/src/plugin';

import SpecialCharacters from './specialcharacters';
import SpecialCharactersCurrency from './specialcharacterscurrency';
import SpecialCharactersMathematical from './specialcharactersmathematical';
import SpecialCharactersArrows from './specialcharactersarrows';
Expand All @@ -31,6 +32,7 @@ export default class SpecialCharactersEssentials extends Plugin {
*/
static get requires() {
return [
SpecialCharacters,
SpecialCharactersCurrency,
SpecialCharactersText,
SpecialCharactersMathematical,
Expand Down
10 changes: 10 additions & 0 deletions src/specialcharacterslatin.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,18 @@
*/

import Plugin from '@ckeditor/ckeditor5-core/src/plugin';
import SpecialCharacters from './specialcharacters';

export default class SpecialCharactersLatin extends Plugin {
/**
* @inheritDoc
*/
static get requires() {
return [
SpecialCharacters
];
}

/**
* @inheritDoc
*/
Expand Down
10 changes: 10 additions & 0 deletions src/specialcharactersmathematical.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,18 @@
*/

import Plugin from '@ckeditor/ckeditor5-core/src/plugin';
import SpecialCharacters from './specialcharacters';

export default class SpecialCharactersMathematical extends Plugin {
/**
* @inheritDoc
*/
static get requires() {
return [
SpecialCharacters
];
}

/**
* @inheritDoc
*/
Expand Down
10 changes: 10 additions & 0 deletions src/specialcharacterstext.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,18 @@
*/

import Plugin from '@ckeditor/ckeditor5-core/src/plugin';
import SpecialCharacters from './specialcharacters';

export default class SpecialCharactersText extends Plugin {
/**
* @inheritDoc
*/
static get requires() {
return [
SpecialCharacters
];
}

/**
* @inheritDoc
*/
Expand Down
2 changes: 2 additions & 0 deletions tests/specialcharactersessentials.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

import SpecialCharactersEssentials from '../src/specialcharactersessentials';

import SpecialCharacters from '../src/specialcharacters';
import SpecialCharactersCurrency from '../src/specialcharacterscurrency';
import SpecialCharactersText from '../src/specialcharacterstext';
import SpecialCharactersMathematical from '../src/specialcharactersmathematical';
Expand All @@ -14,6 +15,7 @@ import SpecialCharactersLatin from '../src/specialcharacterslatin';
describe( 'SpecialCharactersEssentials', () => {
it( 'includes other required plugins', () => {
expect( SpecialCharactersEssentials.requires ).to.deep.equal( [
SpecialCharacters,
SpecialCharactersCurrency,
SpecialCharactersText,
SpecialCharactersMathematical,
Expand Down

0 comments on commit d4208bc

Please sign in to comment.