8
0
Просмотр исходного кода

Aligned code to changes in Editor interfaces.

Oskar Wróbel 8 лет назад
Родитель
Сommit
aa3c7d266b

+ 6 - 6
packages/ckeditor5-editor-classic/src/classiceditor.js

@@ -8,8 +8,8 @@
  */
  */
 
 
 import Editor from '@ckeditor/ckeditor5-core/src/editor/editor';
 import Editor from '@ckeditor/ckeditor5-core/src/editor/editor';
-import DataInterface from '@ckeditor/ckeditor5-core/src/editor/utils/datainterface';
-import ElementInterface from '@ckeditor/ckeditor5-core/src/editor/utils/elementinterface';
+import DataApiMixin from '@ckeditor/ckeditor5-core/src/editor/utils/dataapimixin';
+import ElementApiMixin from '@ckeditor/ckeditor5-core/src/editor/utils/elementapimixin';
 import attachToForm from '@ckeditor/ckeditor5-core/src/editor/utils/attachtoform';
 import attachToForm from '@ckeditor/ckeditor5-core/src/editor/utils/attachtoform';
 import HtmlDataProcessor from '@ckeditor/ckeditor5-engine/src/dataprocessor/htmldataprocessor';
 import HtmlDataProcessor from '@ckeditor/ckeditor5-engine/src/dataprocessor/htmldataprocessor';
 import ClassicEditorUI from './classiceditorui';
 import ClassicEditorUI from './classiceditorui';
@@ -39,8 +39,8 @@ import mix from '@ckeditor/ckeditor5-utils/src/mix';
  * Read more about initializing the editor from source or as a build in
  * Read more about initializing the editor from source or as a build in
  * {@link module:editor-classic/classiceditor~ClassicEditor#create `ClassicEditor.create()`}.
  * {@link module:editor-classic/classiceditor~ClassicEditor#create `ClassicEditor.create()`}.
  *
  *
- * @mixes module:core/editor/utils/datainterface~DataInterface
- * @mixes module:core/editor/utils/elementinterface~ElementInterface
+ * @mixes module:core/editor/utils/dataapimixin~DataApiMixin
+ * @mixes module:core/editor/utils/elementapimixin~ElementApiMixin
  * @implements module:core/editor/editorwithui~EditorWithUI
  * @implements module:core/editor/editorwithui~EditorWithUI
  * @extends module:core/editor/editor~Editor
  * @extends module:core/editor/editor~Editor
  */
  */
@@ -156,5 +156,5 @@ export default class ClassicEditor extends Editor {
 	}
 	}
 }
 }
 
 
-mix( ClassicEditor, DataInterface );
-mix( ClassicEditor, ElementInterface );
+mix( ClassicEditor, DataApiMixin );
+mix( ClassicEditor, ElementApiMixin );

+ 4 - 4
packages/ckeditor5-editor-classic/tests/classiceditor.js

@@ -14,8 +14,8 @@ import ClassicEditor from '../src/classiceditor';
 import Plugin from '@ckeditor/ckeditor5-core/src/plugin';
 import Plugin from '@ckeditor/ckeditor5-core/src/plugin';
 import Paragraph from '@ckeditor/ckeditor5-paragraph/src/paragraph';
 import Paragraph from '@ckeditor/ckeditor5-paragraph/src/paragraph';
 import Bold from '@ckeditor/ckeditor5-basic-styles/src/bold';
 import Bold from '@ckeditor/ckeditor5-basic-styles/src/bold';
-import DataInterface from '@ckeditor/ckeditor5-core/src/editor/utils/datainterface';
-import ElementInterface from '@ckeditor/ckeditor5-core/src/editor/utils/elementinterface';
+import DataApiMixin from '@ckeditor/ckeditor5-core/src/editor/utils/dataapimixin';
+import ElementApiMixin from '@ckeditor/ckeditor5-core/src/editor/utils/elementapimixin';
 import RootElement from '@ckeditor/ckeditor5-engine/src/model/rootelement';
 import RootElement from '@ckeditor/ckeditor5-engine/src/model/rootelement';
 
 
 import testUtils from '@ckeditor/ckeditor5-core/tests/_utils/utils';
 import testUtils from '@ckeditor/ckeditor5-core/tests/_utils/utils';
@@ -46,11 +46,11 @@ describe( 'ClassicEditor', () => {
 		} );
 		} );
 
 
 		it( 'has a Data Interface', () => {
 		it( 'has a Data Interface', () => {
-			testUtils.isMixed( ClassicEditor, DataInterface );
+			testUtils.isMixed( ClassicEditor, DataApiMixin );
 		} );
 		} );
 
 
 		it( 'has a Element Interface', () => {
 		it( 'has a Element Interface', () => {
-			testUtils.isMixed( ClassicEditor, ElementInterface );
+			testUtils.isMixed( ClassicEditor, ElementApiMixin );
 		} );
 		} );
 
 
 		it( 'creates main root element', () => {
 		it( 'creates main root element', () => {