First editor

Feature origin: Tint

Give the editor a visible label, a form field name, and optionally an initial value.

<form method="post" action="/notes">
  <label for="notes">Notes</label>
  <tint-editor id="notes" name="body" value="# Draft" required></tint-editor>
  <button type="submit">Save</button>
  <button type="reset">Reset</button>
</form>

Save the submitted Markdown in your application and load it back through editor.value.

See Content for defaults and Forms & validation for form behavior.