@overlay.appendChild @cursor_el
@cursor_visible = true
@cursor_el.style.left = "#{loc.x + overlay_padding - 1}px"
- @cursor_el.style.top = "#{loc.y + overlay_padding}px"
+ if loc.h < 5
+ height = 12
+ else
+ height = loc.h
+ @cursor_el.style.top = "#{loc.y + overlay_padding + Math.round(height * .07)}px"
+ @cursor_el.style.height = "#{Math.round height * 0.82}px"
@matt cursor[0]
matt: (n) ->
while @matting.length > 0
<h1>Peach HTML5 Editor test page (compiled version)</h1>
<p>This version of the editor test page requires that you've compiled all the source files. (Just run <code>make</code>).</p>
<form action="#" method="get">
- <p>HTML view. Changes here propagate when you remove your cursor (press tab or click outside)<br><textarea name="in" id="in"><p> a b c
+ <p>HTML view. Changes here propagate when you remove your cursor (press tab or click outside)<br><textarea name="in" id="in"><H1>Headline!</h1><p> a b c
d e f<br>g <br> h i j <a href="http://example.com">Click me!</a> o p q r</p>
<p> y z <strong>Bold <em> Italic + Bold</strong> Italic </em> Normal</p>
<p style="white-space: pre-wrap">this &lt;p&gt; has white-space: pre-wrap</p>