X-Git-Url: https://jasonwoof.com/gitweb/?p=peach-html5-editor.git;a=blobdiff_plain;f=editor.coffee;h=c6b13d63e95566e6643bdf696000d12281f1a947;hp=8835a33be0b65a6adc34a24b7b7808a78af03cfd;hb=e5b888b51062da74fd238c6b6e327d9c18ec0fd2;hpb=293dc1a45eb8376fe86b7e369037826cd3745c91 diff --git a/editor.coffee b/editor.coffee index 8835a33..c6b13d6 100644 --- 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