News for hackers. Stuff that matters.
Re:Use your browser as Notepad by gitaarik on Monday July 08, 2013 @08:07AM (#6006319)
You can also just use a textarea:

    data:text/html,<textarea>
A more polished version (100% width/height, nice margin/padding, auto focus):

    data:text/html,<html><head><title>Notepad</title><style>html,body{margin:0;padding:0;}textarea{padding:10px;font-family:Courier;font-size:16px;height:100%;width:100%;border:none;outline:none;}</style></head><body><textarea%20style="height:100%;width:100%;font-size:16px;padding:10px;"></textarea><script>document.getElementsByTagName('textarea')[0].focus()</script></body></html>
This fixes the issue that cutting (Cmd/Ctr + x) doesn't work in Firefox with contenteditable.
Re:Use your browser as Notepad by madeofpalk on Monday July 08, 2013 @10:57AM (#6007065)
One advantage is that formatting shortcuts (Cmd/Ctr + B etc) work with content editable (at least in my browser, Safari 7)