Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
peach-html5-editor.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6130a51
)
tweak cursor placement test span
author
Jason Woofenden
<jason@jasonwoof.com>
Tue, 2 Feb 2016 05:22:18 +0000
(
00:22
-0500)
committer
Jason Woofenden
<jason@jasonwoof.com>
Tue, 2 Feb 2016 05:22:18 +0000
(
00:22
-0500)
editor.coffee
patch
|
blob
|
history
diff --git
a/editor.coffee
b/editor.coffee
index
cde553d
..
defecba
100644
(file)
--- 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