Created
February 2, 2021 17:20
-
-
Save victorpolko/463a2188237341d4b5139d492ad0e5f3 to your computer and use it in GitHub Desktop.
Quick notes in browser using contenteditable
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
data:text/html, <html contenteditable><head><title>::Quick Notes::</title><script>window.onbeforeunload=function(e){return e.returnValue=true};</script></head><body><ol><li></li></ol></body></html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It's a convenient way to add a quick todo or a note in the browser, which I use almost all of the time.
I added a bookmark to Chrome with that gist's content as the
url
, and when I need to write something down, I just start typingcontent
in a new tab.contenteditable
can also be used to paste parts of websites, and it takes the formatting and images with it, so it's a cool way to compose something from many places.E.g. when you need several restaurants descriptions and maps and you don't want to mess with Word or OpenOffice.