4 ms·
A different way of doing something similar, with no code at all: Copy the following into your browser URL bar: "data:text/html, <html contenteditable>" (witho
by heterogenic 13y ago
A different way of doing something similar, with no code at all:
Copy the following into your browser URL bar:
"data:text/html, <html contenteditable>"
(without quotation marks)
- idlewan 13y agoThe whole point of the webapp is also to be able to save. Your proposed alternative is very small and convenient for 'just editing', but you would have to transfer the text written to another editing program to be able to save it.
- huhtenberg 13y agoAhem ... "File / Save Page As"
- heterogenic 13y agoBeat me to it. :)
- idlewan 13y agoYou usually don't want to save a text file as html. You want it as readable text that you can open with any editor, not riddled with <p> like you would end up with if you use a contentEditable.
- slashdotaccount 13y agoand that'll work like a WYSIWYG editor whilw I need just plain text (no formatting).... that's why I'm not using contenteditable div, rather using textarea..