Skip to content

Commit

Permalink
parse dom node, not innerHTML
Browse files Browse the repository at this point in the history
  • Loading branch information
bantic committed Jul 2, 2015
1 parent 71f9018 commit e77c366
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/editor/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ Editor.prototype.loadModel = function(model) {
};

Editor.prototype.syncModel = function() {
this.model = this.compiler.parse(this.element.innerHTML);
this.model = this.compiler.parse(this.element);
this.trigger('update');
};

Expand Down

0 comments on commit e77c366

Please sign in to comment.