Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
peach-html5-editor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
change parser api again
[peach-html5-editor.git]
/
editor.js
diff --git
a/editor.js
b/editor.js
index
66b835b
..
977ca9e
100644
(file)
--- 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.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) {
if (this.tree[0] == null ? true : this.tree[0].parent == null) {
- this.tree = peach_parser('<p style="white-space: pre-wrap"> </p>', this.parser_opts)
+ this.tree = peach_parser.parse('<p style="white-space: pre-wrap"> </p>', this.parser_opts)
}
this.tree_parent = this.tree[0].parent
this.tree_parent.el = this.idoc.body
}
this.tree_parent = this.tree[0].parent
this.tree_parent.el = this.idoc.body