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

Commit

Permalink
Code refactoring.
Browse files Browse the repository at this point in the history
  • Loading branch information
oleq committed Jul 19, 2019
1 parent 000f09d commit dad8e42
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/decouplededitor.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ export default class DecoupledEditor extends Editor {

if ( isElement( sourceElementOrData ) ) {
this.sourceElement = sourceElementOrData;
this.secureSourceElement();
}

this.data.processor = new HtmlDataProcessor();
Expand All @@ -78,8 +79,6 @@ export default class DecoupledEditor extends Editor {

const view = new DecoupledEditorUIView( this.locale, this.editing.view, this.sourceElement );
this.ui = new DecoupledEditorUI( this, view );

this.secureSourceElement();
}

/**
Expand Down

0 comments on commit dad8e42

Please sign in to comment.