3 ms·
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/h
by gitaarik 13y ago
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.
- madeofpalk 13y agoOne advantage is that formatting shortcuts (Cmd/Ctr + B etc) work with content editable (at least in my browser, Safari 7)