Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
peach-html5-editor.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
415ca1d
)
update comments
author
Jason Woofenden
<jason@jasonwoof.com>
Thu, 16 Jun 2016 19:33:30 +0000
(15:33 -0400)
committer
Jason Woofenden
<jason@jasonwoof.com>
Thu, 16 Jun 2016 19:33:30 +0000
(15:33 -0400)
editor.coffee
patch
|
blob
|
history
diff --git
a/editor.coffee
b/editor.coffee
index
91f5c1c
..
b21d959
100644
(file)
--- a/
editor.coffee
+++ b/
editor.coffee
@@
-1278,6
+1278,9
@@
class PeachHTML5Editor
# remove whitespace that would be trimmed
# replace whitespace that would collapse with a single space
# FIXME remove whitespace from after <br> (but not before)
+ # FIXME rewrite to
+ # check computed white-space prop on txt parents
+ # batch replace txt node contents (ie don't loop for each char)
collapse_whitespace: (tree = @tree) ->
prev = cur = next = null
prev_i = cur_i = next_i = 0