JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
tweak cursor placement test span
authorJason Woofenden <jason@jasonwoof.com>
Tue, 2 Feb 2016 05:22:18 +0000 (00:22 -0500)
committerJason Woofenden <jason@jasonwoof.com>
Tue, 2 Feb 2016 05:22:18 +0000 (00:22 -0500)
editor.coffee

index cde553d..defecba 100644 (file)
@@ -34,7 +34,7 @@ get_el_offset = (el) ->
 # implementation: insert a span tag where we want the cursor, and ask the
 # browser where it put that span
 cursor_to_loc = (n, i) ->
-       span = domify span: style: "height: 1em; width: 0", children: [domify text: "|"]
+       span = domify span: style: "height: 1em; border-left: 1px solid black; margin-left: -1px"
        parent = n.el.parentNode
        if i is 0
                # cursor at start of text