Better HN
topnewbestaskshowjobs
Log inSign up

emilioves

3 karma · joined Oct 3, 2020 (6y ago) · 2 submissions

Submissions

comment 6y ago · link · parent

<html contenteditable> is too powerful I think. You can paste HTML, which you might find desirable for stuff like pasting link anchors, but if you paste something that uses tables for layout (HN titles for example). It leaves it in this weird state where you can delete the table contents but not the table itself. I think for my purposes I'll use something like

  data:text/html,<textarea>
with some CSS to make it fit the page size.

Update:

  data:text/html,<textarea style='font-size:1.25rem;margin:0px;height:100%25;width:100%25;'>

comment 6y ago · link · parent

Check out the README.sh on their Github repo. Such a nice touch.

https://github.com/zserge/awfice/blob/main/README.sh