|
|
@@ -13,6 +13,7 @@ import BalloonToolbar from '@ckeditor/ckeditor5-ui/src/toolbar/balloon/balloonto
|
|
|
import BalloonEditorUI from './ballooneditorui';
|
|
|
import BalloonEditorUIView from './ballooneditoruiview';
|
|
|
import setDataInElement from '@ckeditor/ckeditor5-utils/src/dom/setdatainelement';
|
|
|
+import getDataFromElement from '@ckeditor/ckeditor5-utils/src/dom/getdatafromelement';
|
|
|
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';
|
|
|
@@ -142,7 +143,7 @@ export default class BalloonEditor extends Editor {
|
|
|
editor.ui.init();
|
|
|
editor.fire( 'uiReady' );
|
|
|
} )
|
|
|
- .then( () => editor.loadDataFromElement() )
|
|
|
+ .then( () => editor.data.init( getDataFromElement( element ) ) )
|
|
|
.then( () => {
|
|
|
editor.fire( 'dataReady' );
|
|
|
editor.fire( 'ready' );
|