Skip to content

Instantly share code, notes, and snippets.

@bsmagic
Last active December 30, 2020 06:48
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save bsmagic/511de0de7e3218f848eef6ad01f9f309 to your computer and use it in GitHub Desktop.
Oneline temporary text editor created by bookmarklet in modern web browsers
data:text/html, <title>TextEditor</title><textarea style="font-size: 1.5em; width: 100%; height: 100%; border: none; outline: none;background-color:powderblue;" autofocus />

"程序员 Jose Jesus Perez Aguinaga 在 CoderWall 分享了一个小技巧:在浏览器地址栏中输入一行代码:data:text/html, ,回车即可把浏览器变临时编辑器(需要浏览器支持 HTML5 属性 contenteditable)。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment