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
(from parent 1:
293dc1a
)
fix bug from recent backspace rewrite
author
Jason Woofenden
<jason@jasonwoof.com>
Tue, 24 May 2016 22:00:22 +0000
(18:00 -0400)
committer
Jason Woofenden
<jason@jasonwoof.com>
Tue, 24 May 2016 22:00:22 +0000
(18:00 -0400)
editor.coffee
patch
|
blob
|
history
diff --git
a/editor.coffee
b/editor.coffee
index
8835a33
..
c6b13d6
100644
(file)
--- a/
editor.coffee
+++ b/
editor.coffee
@@
-1164,7
+1164,7
@@
class PeachHTML5Editor
if @cursor.n.text.length is 1 # if emptying text node
if run.length is 1 # if emptying text run (of text/br/hr/inline-block)
# remove inline-parents of @cursor.n
- block = @find_block_parent n
+ block = @find_block_parent @cursor.n
changed = false
n = @cursor.n.parent
while n and n isnt block