X-Git-Url: https://jasonwoof.com/gitweb/?p=peach-html5-editor.git;a=blobdiff_plain;f=editor.coffee;h=defecba6f56c8635a98f4da7826a6edc7fbb456e;hp=cde553db83bca03289c18244355c7661be58bbbe;hb=33e750fec2426e7ab0f7f02d2d1cf76a3bf7091b;hpb=6130a51115ea0181baf6ca0f286ca5f845bbeff3 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