+domify = (h) ->
+ for tag, attrs of h
+ if tag is 'text'
+ return document.createTextNode attrs
+ el = document.createElement tag
+ for k, v of attrs
+ if k is 'children'
+ for child in v
+ el.appendChild child
+ else
+ el.setAttribute k, v
+ return el
+
+css = ''
+css += 'span.peach_editor_cursor {'
+css += 'display: inline-block;'
+css += 'height: 1em;'
+css += 'width: 2px;'
+css += 'margin-left: -1px;'
+css += 'margin-right: -1px;'
+css += 'background: #000;'
+css += '-webkit-animation: 1s blink step-end infinite;'
+css += 'animation: 1s blink step-end infinite;'
+css += '}'
+css += '@-webkit-keyframes "blink" {'
+css += 'from, to { background: transparent; }'
+css += '50% { background: #000; }'
+css += '}'
+css += '@keyframes "blink" {'
+css += 'from, to { background: transparent; }'
+css += '50% { background: #000; }'
+css += '}'
+