Skip to content

Instantly share code, notes, and snippets.

@garcon
Last active August 28, 2025 09:09
Show Gist options
  • Save garcon/3e364155526f97a8e805414e8becab06 to your computer and use it in GitHub Desktop.
Save garcon/3e364155526f97a8e805414e8becab06 to your computer and use it in GitHub Desktop.
Paste the code into the browser’s address bar, then save it as a bookmark. You’ll get a Notepad-like text editor. Keep in mind, your text gets lost when you close the window!
data:text/html;charset=utf-8,%3Ctitle%3ETextEditor%3C/title%3E%3Cstyle%3Ebody%7Bbackground:%23fbfbfb;color:%23333;margin:0%20auto;width:50rem%7Dtextarea%7Bbackground:%23fbfbfb;border:0;color:%23333;font-family:sans-serif;font-size:2rem;height:98%25;line-height:1.4;margin:0%20auto;outline:0;padding:4rem;width:100%25%7Dbutton%7Bbackground-color:%23fbfbfb;border:1px%20%23ccc%20solid;color:%23999;cursor:pointer;float:right;margin:10px%200;padding:5px%2010px%7D@media%20(max-width:768px)%7Bbody%7Bwidth:100%25;padding:0%7Dtextarea%7Bpadding:10px%7Dbutton%7Bfloat:none%7D%7D%3C/style%3E%3Cbody%3E%3Cbutton%20onclick=%22sM();%20return%20false%22%3EEmail%20this%3C/button%3E%3Ctextarea%20contenteditable%20id=TE%20spellcheck=false%20placeholder=Write...%20autofocus%3E%3C/textarea%3E%3Cscript%3Efunction%20sM()%7Bvar%20a=%22mailto:?subject=%22+escape(%22Text%20from%20TextEditor%22)+%22&body=%22+escape(document.getElementById(%22TE%22).value);window.location.href=a%7D;%3C/script%3E
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment