Follow

I've created a custom element for a basic wysiwyg form control using the ElementInternals api.

I would appreciate hearing what people think!

Readme: gitlab.com/paulkiddle/html-are
Demo: paulkiddle.gitlab.io/html-area

@Paul is firefox unable to load the content from the element with contenteditable=true and submit it when form.onSubmit is called ? that would feel like a slightly better option than a plain textarea as a fallback.

@mariusor Well the fallback is primarily intended for clients without javascript enabled

@Paul apologies, indeed, it wasn't a Firefox problem, but a uMatrix blocking external scripts problem. :)

@mariusor see, you never know when a script will break, but you can rely on html

Sign in to participate in the conversation
Kith Kitchen

All about food, friends, cooking and community.