From d4208bcbfa17d43859219c1c688b5971c8d662db Mon Sep 17 00:00:00 2001 From: Marek Lewandowski Date: Wed, 27 Nov 2019 09:07:49 +0100 Subject: [PATCH] Internal: Special character plugins that define character now require base plugin out of the box, thus there's no need to explicitly require the base plugin. --- src/specialcharactersarrows.js | 10 ++++++++++ src/specialcharacterscurrency.js | 10 ++++++++++ src/specialcharactersessentials.js | 2 ++ src/specialcharacterslatin.js | 10 ++++++++++ src/specialcharactersmathematical.js | 10 ++++++++++ src/specialcharacterstext.js | 10 ++++++++++ tests/specialcharactersessentials.js | 2 ++ 7 files changed, 54 insertions(+) diff --git a/src/specialcharactersarrows.js b/src/specialcharactersarrows.js index 068e044..7494a26 100644 --- a/src/specialcharactersarrows.js +++ b/src/specialcharactersarrows.js @@ -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 */ diff --git a/src/specialcharacterscurrency.js b/src/specialcharacterscurrency.js index 2c130a0..5c1d05d 100644 --- a/src/specialcharacterscurrency.js +++ b/src/specialcharacterscurrency.js @@ -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 */ diff --git a/src/specialcharactersessentials.js b/src/specialcharactersessentials.js index 6db9794..30262d7 100644 --- a/src/specialcharactersessentials.js +++ b/src/specialcharactersessentials.js @@ -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'; @@ -31,6 +32,7 @@ export default class SpecialCharactersEssentials extends Plugin { */ static get requires() { return [ + SpecialCharacters, SpecialCharactersCurrency, SpecialCharactersText, SpecialCharactersMathematical, diff --git a/src/specialcharacterslatin.js b/src/specialcharacterslatin.js index c4812b4..2cccff0 100644 --- a/src/specialcharacterslatin.js +++ b/src/specialcharacterslatin.js @@ -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 */ diff --git a/src/specialcharactersmathematical.js b/src/specialcharactersmathematical.js index 2c6fd71..19aaa39 100644 --- a/src/specialcharactersmathematical.js +++ b/src/specialcharactersmathematical.js @@ -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 */ diff --git a/src/specialcharacterstext.js b/src/specialcharacterstext.js index a19320c..aa04a26 100644 --- a/src/specialcharacterstext.js +++ b/src/specialcharacterstext.js @@ -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 */ diff --git a/tests/specialcharactersessentials.js b/tests/specialcharactersessentials.js index 354ad60..8185efc 100644 --- a/tests/specialcharactersessentials.js +++ b/tests/specialcharactersessentials.js @@ -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'; @@ -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,