|
@@ -46,9 +46,6 @@ export default class ClassicCreator extends StandardCreator {
|
|
|
|
|
|
|
|
// UI.
|
|
// UI.
|
|
|
createEditorUI( editor, BoxedEditorUI, BoxedEditorUIView );
|
|
createEditorUI( editor, BoxedEditorUI, BoxedEditorUIView );
|
|
|
-
|
|
|
|
|
- // Data controller mock.
|
|
|
|
|
- this._mockDataController();
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -109,22 +106,4 @@ export default class ClassicCreator extends StandardCreator {
|
|
|
|
|
|
|
|
this.editor.ui.add( 'top', toolbar );
|
|
this.editor.ui.add( 'top', toolbar );
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
- /**
|
|
|
|
|
- * TEMP: Mocks basic data IO for the purposes of the creator.
|
|
|
|
|
- * TODO: To be replaced with actual engine bindings.
|
|
|
|
|
- *
|
|
|
|
|
- * @protected
|
|
|
|
|
- */
|
|
|
|
|
- _mockDataController() {
|
|
|
|
|
- const editor = this.editor;
|
|
|
|
|
-
|
|
|
|
|
- editor.data.get = ( rootName ) => {
|
|
|
|
|
- return editor.editables.get( rootName ).domElement.innerHTML + `<p>getData( '${ rootName }' )</p>`;
|
|
|
|
|
- };
|
|
|
|
|
-
|
|
|
|
|
- this.editor.data.set = ( rootName, data ) => {
|
|
|
|
|
- editor.editables.get( rootName ).domElement.innerHTML = data + `<p>setData( '${ rootName }' )</p>`;
|
|
|
|
|
- };
|
|
|
|
|
- }
|
|
|
|
|
}
|
|
}
|