8
0
Quellcode durchsuchen

Removed Enter from Title requienments.

Oskar Wróbel vor 6 Jahren
Ursprung
Commit
f3d8f3f622

+ 1 - 2
packages/ckeditor5-heading/src/title.js

@@ -8,7 +8,6 @@
  */
 
 import Plugin from '@ckeditor/ckeditor5-core/src/plugin';
-import Enter from '@ckeditor/ckeditor5-enter/src/enter';
 import Paragraph from '@ckeditor/ckeditor5-paragraph/src/paragraph';
 
 import {
@@ -41,7 +40,7 @@ export default class Title extends Plugin {
 	 * @inheritDoc
 	 */
 	static get requires() {
-		return [ Paragraph, Enter ];
+		return [ Paragraph ];
 	}
 
 	/**

+ 2 - 2
packages/ckeditor5-heading/tests/title.js

@@ -39,8 +39,8 @@ describe( 'Title', () => {
 		return editor.destroy().then( () => element.remove() );
 	} );
 
-	it( 'should requires certain plugins', () => {
-		expect( Title.requires ).to.have.members( [ Paragraph, Enter ] );
+	it( 'should requires Paragraph plugin', () => {
+		expect( Title.requires ).to.have.members( [ Paragraph ] );
 	} );
 
 	it( 'should have plugin name property', () => {