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

Commit 47c9c8c

Browse files
committed
Merge branch 't/6'
Feature: Introduced soft breaks support in the `Essential` plugin. Closes #6.
2 parents b550784 + 6cda690 commit 47c9c8c

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/essentials.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import Plugin from '@ckeditor/ckeditor5-core/src/plugin';
1111

1212
import Clipboard from '@ckeditor/ckeditor5-clipboard/src/clipboard';
1313
import Enter from '@ckeditor/ckeditor5-enter/src/enter';
14+
import ShiftEnter from '@ckeditor/ckeditor5-enter/src/shiftenter';
1415
import Typing from '@ckeditor/ckeditor5-typing/src/typing';
1516
import Undo from '@ckeditor/ckeditor5-undo/src/undo';
1617

@@ -22,6 +23,7 @@ import Undo from '@ckeditor/ckeditor5-undo/src/undo';
2223
*
2324
* * {@link module:clipboard/clipboard~Clipboard},
2425
* * {@link module:enter/enter~Enter},
26+
* * {@link module:enter/shiftenter~ShiftEnter},
2527
* * {@link module:typing/typing~Typing},
2628
* * {@link module:undo/undo~Undo}.
2729
*
@@ -35,7 +37,7 @@ export default class Essentials extends Plugin {
3537
* @inheritDoc
3638
*/
3739
static get requires() {
38-
return [ Clipboard, Enter, Typing, Undo ];
40+
return [ Clipboard, Enter, ShiftEnter, Typing, Undo ];
3941
}
4042

4143
/**

tests/essentials.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import ClassicTestEditor from '@ckeditor/ckeditor5-core/tests/_utils/classictest
1010

1111
import Clipboard from '@ckeditor/ckeditor5-clipboard/src/clipboard';
1212
import Enter from '@ckeditor/ckeditor5-enter/src/enter';
13+
import ShiftEnter from '@ckeditor/ckeditor5-enter/src/shiftenter';
1314
import Typing from '@ckeditor/ckeditor5-typing/src/typing';
1415
import Undo from '@ckeditor/ckeditor5-undo/src/undo';
1516

@@ -39,6 +40,7 @@ describe( 'Essentials preset', () => {
3940
it( 'should load all its dependencies', () => {
4041
expect( editor.plugins.get( Clipboard ) ).to.be.instanceOf( Clipboard );
4142
expect( editor.plugins.get( Enter ) ).to.be.instanceOf( Enter );
43+
expect( editor.plugins.get( ShiftEnter ) ).to.be.instanceOf( ShiftEnter );
4244
expect( editor.plugins.get( Typing ) ).to.be.instanceOf( Typing );
4345
expect( editor.plugins.get( Undo ) ).to.be.instanceOf( Undo );
4446
} );

0 commit comments

Comments
 (0)