X-Git-Url: https://jasonwoof.com/gitweb/?p=peach-html5-editor.git;a=blobdiff_plain;f=editor.js;h=977ca9e5d3d3da0fa79fa1baf2f313bd86aac4bc;hp=66b835b589015155f1323b15ca4c784124913cfa;hb=5e063be4c624b39f7e066b9674239fd81e471773;hpb=2fa7d2835a89e76d51e33f0c8c79dbf9d5b818f8 diff --git a/editor.js b/editor.js index 66b835b..977ca9e 100644 --- a/editor.js +++ b/editor.js @@ -1674,9 +1674,9 @@ PeachHTML5Editor.prototype.clear_dom = function() { this.kill_cursor() } PeachHTML5Editor.prototype.load_html = function(html) { - this.tree = peach_parser(html, this.parser_opts) + this.tree = peach_parser.parse(html, this.parser_opts) if (this.tree[0] == null ? true : this.tree[0].parent == null) { - this.tree = peach_parser('

', this.parser_opts) + this.tree = peach_parser.parse('

', this.parser_opts) } this.tree_parent = this.tree[0].parent this.tree_parent.el = this.idoc.body