X-Git-Url: https://jasonwoof.com/gitweb/?p=peach-html5-editor.git;a=blobdiff_plain;f=editor.coffee;h=b21d9593cfa687a4dbe3c9f88a83cf7295ac3e9b;hp=91f5c1c320d984bb7344e42d12e0fc8547e397d4;hb=10bde13b5d10afeea68c4f0995a2aae0a0137c23;hpb=415ca1d104466fe556d814d62a23bd713e423efd diff --git a/editor.coffee b/editor.coffee index 91f5c1c..b21d959 100644 --- 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
(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