JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
tweak cursor placement test span
[peach-html5-editor.git] / 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