Skip to content
Snippets Groups Projects
user avatar
Conrad Zelck authored
Use a div with attribute:
 - contenteditable="true"

It fixes a lot of issues:
 - height of #input needs no javascript to adapt to content
 - therefor no complex styles are needed
 - width will no longer exceed the given width by grid-template-column
 - styling etc. can be handled like the #output div next to it

You have to set two attributes for a11y:
 - role="textbox"
 - aria-multiline="true"

Signed-off-by: default avatarConrad Zelck <git@simpel.cc>
b50880c7
History
Name Last commit Last update