From 33e750fec2426e7ab0f7f02d2d1cf76a3bf7091b Mon Sep 17 00:00:00 2001 From: Jason Woofenden Date: Tue, 2 Feb 2016 00:22:18 -0500 Subject: [PATCH] tweak cursor placement test span --- editor.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor.coffee b/editor.coffee index cde553d..defecba 100644 --- a/editor.coffee +++ b/editor.coffee @@ -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 -- 1.7.10.4