Przeglądaj źródła

Aligned code to changes in Editor interfaces.

Oskar Wróbel 8 lat temu
rodzic
commit
da1b62f932

+ 4 - 4
packages/ckeditor5-ui/docs/_snippets/examples/bootstrap-ui-inner.js

@@ -12,8 +12,8 @@ import HtmlDataProcessor from '@ckeditor/ckeditor5-engine/src/dataprocessor/html
 import ElementReplacer from '@ckeditor/ckeditor5-utils/src/elementreplacer';
 
 // Interfaces to extend basic Editor API.
-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';
 
 // Helper function for adding interfaces to the Editor class.
 import mix from '@ckeditor/ckeditor5-utils/src/mix';
@@ -112,8 +112,8 @@ export default class BootstrapEditor extends Editor {
 }
 
 // Mixing interfaces, which extends basic editor API.
-mix( BootstrapEditor, DataInterface );
-mix( BootstrapEditor, ElementInterface );
+mix( BootstrapEditor, DataApiMixin );
+mix( BootstrapEditor, ElementApiMixin );
 
 // This function activates Bold, Italic, Underline, Undo and Redo buttons in the toolbar.
 function setupButtons( editor ) {

+ 4 - 4
packages/ckeditor5-ui/docs/framework/guides/external-ui.md

@@ -24,8 +24,8 @@ import HtmlDataProcessor from '@ckeditor/ckeditor5-engine/src/dataprocessor/html
 import ElementReplacer from '@ckeditor/ckeditor5-utils/src/elementreplacer';
 
 // Interfaces to extend basic Editor API.
-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';
 
 // Helper function for adding interfaces to the Editor class.
 import mix from '@ckeditor/ckeditor5-utils/src/mix';
@@ -134,8 +134,8 @@ export default class BootstrapEditor extends Editor {
 }
 
 // Mixing interfaces, which extends basic editor API.
-mix( BootstrapEditor, DataInterface );
-mix( BootstrapEditor, ElementInterface );
+mix( BootstrapEditor, DataApiMixin );
+mix( BootstrapEditor, ElementApiMixin );
 ```
 
 ## Creating the Bootstrap UI