Astro
An .astro component that renders <owe-editor>. It works with plain form posts and needs no UI framework.
On this page
Install
Usage
Good to know
- The component imports its own script and styles, so there is nothing else to add.
- The server renders only the
<owe-editor>element, with the initial HTML in an escapedvalueattribute. The field works with a plain form post instaticandserveroutput.
Always sanitize on the server
The editor sanitizes what it loads and produces, but that is not a security boundary: anyone can post any string to your API. Sanitize the HTML again with a library you trust before you store it or render it for other users.