Browse Source

Aligned code to changes in Editor interfaces.

Oskar Wróbel 8 years ago
parent
commit
27a2e9fea9

+ 6 - 6
packages/ckeditor5-editor-inline/src/inlineeditor.js

@@ -8,8 +8,8 @@
  */
 
 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 HtmlDataProcessor from '@ckeditor/ckeditor5-engine/src/dataprocessor/htmldataprocessor';
 import InlineEditorUI from './inlineeditorui';
@@ -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
  * {@link module:editor-inline/inlineeditor~InlineEditor#create `InlineEditor.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
  * @extends module:core/editor/editor~Editor
  */
@@ -149,5 +149,5 @@ export default class InlineEditor extends Editor {
 	}
 }
 
-mix( InlineEditor, DataInterface );
-mix( InlineEditor, ElementInterface );
+mix( InlineEditor, DataApiMixin );
+mix( InlineEditor, ElementApiMixin );

+ 4 - 4
packages/ckeditor5-editor-inline/tests/inlineeditor.js

@@ -16,8 +16,8 @@ import InlineEditor from '../src/inlineeditor';
 import Plugin from '@ckeditor/ckeditor5-core/src/plugin';
 import Paragraph from '@ckeditor/ckeditor5-paragraph/src/paragraph';
 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 testUtils from '@ckeditor/ckeditor5-core/tests/_utils/utils';
@@ -53,11 +53,11 @@ describe( 'InlineEditor', () => {
 		} );
 
 		it( 'has a Data Interface', () => {
-			testUtils.isMixed( InlineEditor, DataInterface );
+			testUtils.isMixed( InlineEditor, DataApiMixin );
 		} );
 
 		it( 'has a Element Interface', () => {
-			testUtils.isMixed( InlineEditor, ElementInterface );
+			testUtils.isMixed( InlineEditor, ElementApiMixin );
 		} );
 
 		it( 'creates main root element', () => {