Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Commit

Permalink
Internal: Changed the way of getting initial data from element.
Browse files Browse the repository at this point in the history
  • Loading branch information
oskarwrobel committed Mar 9, 2018
1 parent c4b3e92 commit 415fcc4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ballooneditor.js
Expand Up @@ -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';
Expand Down Expand Up @@ -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' );
Expand Down

0 comments on commit 415fcc4

Please sign in to comment.