Przeglądaj źródła

Got rid of Feature class and renamed featureComponents.

Piotrek Koszuliński 9 lat temu
rodzic
commit
29bf2476c1

+ 2 - 2
packages/ckeditor5-autoformat/src/autoformat.js

@@ -5,7 +5,7 @@
 
 import BlockAutoformatEngine from './blockautoformatengine.js';
 import InlineAutoformatEngine from './inlineautoformatengine.js';
-import Feature from '../core/feature.js';
+import Plugin from '../core/plugin.js';
 import HeadingEngine from '../heading/headingengine.js';
 import ListEngine from '../list/listengine.js';
 import BoldEngine from '../basic-styles/boldengine.js';
@@ -46,7 +46,7 @@ import ItalicEngine from '../basic-styles/italicengine.js';
  * @memberOf autoformat
  * @extends core.Feature
  */
-export default class Autoformat extends Feature {
+export default class Autoformat extends Plugin {
 	/**
 	 * @inheritDoc
 	 */

+ 1 - 1
packages/ckeditor5-autoformat/tests/autoformat.js

@@ -17,7 +17,7 @@ describe( 'Autoformat', () => {
 
 	beforeEach( () => {
 		return VirtualTestEditor.create( {
-			features: [ Enter, Paragraph, Autoformat ]
+			plugins: [ Enter, Paragraph, Autoformat ]
 		} )
 		.then( newEditor => {
 			editor = newEditor;

+ 1 - 1
packages/ckeditor5-autoformat/tests/blockautoformatengine.js

@@ -18,7 +18,7 @@ describe( 'BlockAutoformatEngine', () => {
 
 	beforeEach( () => {
 		return VirtualTestEditor.create( {
-			features: [ Enter, Paragraph ]
+			plugins: [ Enter, Paragraph ]
 		} )
 		.then( newEditor => {
 			editor = newEditor;

+ 1 - 1
packages/ckeditor5-autoformat/tests/inlineautoformatengine.js

@@ -17,7 +17,7 @@ describe( 'InlineAutoformatEngine', () => {
 
 	beforeEach( () => {
 		return VirtualTestEditor.create( {
-			features: [ Enter, Paragraph ]
+			plugins: [ Enter, Paragraph ]
 		} )
 		.then( newEditor => {
 			editor = newEditor;

+ 1 - 1
packages/ckeditor5-autoformat/tests/manual/autoformat.js

@@ -17,7 +17,7 @@ import Bold from '/ckeditor5/basic-styles/bold.js';
 import Italic from '/ckeditor5/basic-styles/italic.js';
 
 ClassicEditor.create( document.querySelector( '#editor' ), {
-	features: [ Enter, Typing, Paragraph, Undo, Bold, Italic, Heading, List, Autoformat ],
+	plugins: [ Enter, Typing, Paragraph, Undo, Bold, Italic, Heading, List, Autoformat ],
 	toolbar: [ 'headings', 'numberedList', 'bulletedList', 'bold', 'italic', 'undo', 'redo' ]
 } )
 .then( editor => {