Tiny (125 loc), simple designMode based text editor focused on clean html output
Ctrl+h
– convert to <h1>
. Hit again to h2
, h3
etc.Ctrl+p
– convert to <p>
Ctrl+u
– convert to <ul>
Ctrl+o
– convert to <ol>
Ctrl+d
– convert to <div>
Shift+Enter
– insert new line w/o creating new html node