Selaa lähdekoodia

Updated the MT.

Kamil Piechaczek 7 vuotta sitten
vanhempi
commit
7fe3cc6b39

+ 6 - 0
packages/ckeditor5-enter/tests/manual/enter.html

@@ -3,4 +3,10 @@
 	<h3>Heading 2</h3>
 	<h4>Heading 3</h4>
 	<p>Paragraph</p>
+	<p>
+		Lorem ipsum dolor sit amet, consectetur adipiscing elit.<br>
+		Nulla finibus consequat placerat.<br>
+		Vestibulum id tellus et mauris sagittis tincidunt quis id mauris.<br>
+		Curabitur consectetur lectus sit amet tellus mattis, non lobortis leo interdum.
+	</p>
 </div>

+ 2 - 2
packages/ckeditor5-enter/tests/manual/enter.js

@@ -6,7 +6,7 @@
 /* globals console:false, document, window */
 
 import ClassicEditor from '@ckeditor/ckeditor5-editor-classic/src/classiceditor';
-import Enter from '../../src/enter';
+import Essentials from '../../src/essentials';
 import Typing from '@ckeditor/ckeditor5-typing/src/typing';
 import Heading from '@ckeditor/ckeditor5-heading/src/heading';
 import Undo from '@ckeditor/ckeditor5-undo/src/undo';
@@ -15,7 +15,7 @@ import Italic from '@ckeditor/ckeditor5-basic-styles/src/italic';
 
 ClassicEditor
 	.create( document.querySelector( '#editor' ), {
-		plugins: [ Enter, Typing, Heading, Undo, Bold, Italic ],
+		plugins: [ Essentials, Typing, Heading, Undo, Bold, Italic ],
 		toolbar: [ 'heading', '|', 'bold', 'italic', 'undo', 'redo' ]
 	} )
 	.then( editor => {

+ 1 - 1
packages/ckeditor5-enter/tests/manual/enter.md

@@ -7,7 +7,7 @@ Test the <kbd>Enter</kbd> key support.
 * Expected behavior:
 	* At the end of a heading should create a new paragraph.
 	* In the middle of a heading should split it.
-	* <kbd>Shift+Enter</kbd> should have <kbd>Enter</kbd> behavior.
+	* <kbd>Shift+Enter</kbd> should move the text to new line.
 	* The selection should always be moved to the newly created block.
 	* Select all + <kbd>Enter</kbd> should leave an empty paragraph.
 * Check: