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

Commit

Permalink
Used better variable name.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kamil Piechaczek committed Jul 3, 2018
1 parent c210e56 commit 46d2f71
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/classiceditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,9 +201,11 @@ export default class ClassicEditor extends Editor {
} )
.then( () => editor.editing.view.attachDomRoot( editor.ui.view.editableElement ) )
.then( () => {
const data = isElement( sourceElementOrData ) ? getDataFromElement( sourceElementOrData ) : sourceElementOrData;
const initialData = isElement( sourceElementOrData ) ?
getDataFromElement( sourceElementOrData ) :
sourceElementOrData;

return editor.data.init( data );
return editor.data.init( initialData );
} )
.then( () => {
editor.fire( 'dataReady' );
Expand Down

0 comments on commit 46d2f71

Please sign in to comment.