One tag.
Native forms.

Drop <tedditor-editor> into any HTML form. Its HTML value is submitted as a normal field, reset restores the initial content, and changes emit tedditor:change.

Form demo

Native form submission, reset and change events.

Custom element

Edit this, then save the form.

FormData

The submitted content field.

submit

        

tedditor:change

Every edit, delivered as a typed event.

event