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

Commit

Permalink
Merge branch 't/6'
Browse files Browse the repository at this point in the history
Feature: Introduced soft breaks support in the `Essential` plugin. Closes #6.
  • Loading branch information
Reinmar committed Jun 11, 2018
2 parents b550784 + 6cda690 commit 47c9c8c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/essentials.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import Plugin from '@ckeditor/ckeditor5-core/src/plugin';

import Clipboard from '@ckeditor/ckeditor5-clipboard/src/clipboard';
import Enter from '@ckeditor/ckeditor5-enter/src/enter';
import ShiftEnter from '@ckeditor/ckeditor5-enter/src/shiftenter';
import Typing from '@ckeditor/ckeditor5-typing/src/typing';
import Undo from '@ckeditor/ckeditor5-undo/src/undo';

Expand All @@ -22,6 +23,7 @@ import Undo from '@ckeditor/ckeditor5-undo/src/undo';
*
* * {@link module:clipboard/clipboard~Clipboard},
* * {@link module:enter/enter~Enter},
* * {@link module:enter/shiftenter~ShiftEnter},
* * {@link module:typing/typing~Typing},
* * {@link module:undo/undo~Undo}.
*
Expand All @@ -35,7 +37,7 @@ export default class Essentials extends Plugin {
* @inheritDoc
*/
static get requires() {
return [ Clipboard, Enter, Typing, Undo ];
return [ Clipboard, Enter, ShiftEnter, Typing, Undo ];
}

/**
Expand Down
2 changes: 2 additions & 0 deletions tests/essentials.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import ClassicTestEditor from '@ckeditor/ckeditor5-core/tests/_utils/classictest

import Clipboard from '@ckeditor/ckeditor5-clipboard/src/clipboard';
import Enter from '@ckeditor/ckeditor5-enter/src/enter';
import ShiftEnter from '@ckeditor/ckeditor5-enter/src/shiftenter';
import Typing from '@ckeditor/ckeditor5-typing/src/typing';
import Undo from '@ckeditor/ckeditor5-undo/src/undo';

Expand Down Expand Up @@ -39,6 +40,7 @@ describe( 'Essentials preset', () => {
it( 'should load all its dependencies', () => {
expect( editor.plugins.get( Clipboard ) ).to.be.instanceOf( Clipboard );
expect( editor.plugins.get( Enter ) ).to.be.instanceOf( Enter );
expect( editor.plugins.get( ShiftEnter ) ).to.be.instanceOf( ShiftEnter );
expect( editor.plugins.get( Typing ) ).to.be.instanceOf( Typing );
expect( editor.plugins.get( Undo ) ).to.be.instanceOf( Undo );
} );
Expand Down

0 comments on commit 47c9c8c

Please sign in to comment.