Events
content-change
Fired whenever the document changes, and once after content is loaded.
event.detail
| Field | Description |
|---|---|
body |
The edited fragment, serialized back to XML |
xml |
The full XML document (header/metadata + body) for the current format |
editor.addEventListener('content-change', (event) => {
const { body, xml } = event.detail;
});
ready
Fired once, after the editor has been created and initialised. Carries no detail.
editor.addEventListener('ready', () => {
/* editor.tiptap is now available */
});
jinn-toast
Not dispatched on the element but on document: a request to display a toast
message (info/error). Render a <jinn-toast> element to show them. See
Events guide → toasts.
Pass detail.confirm (or use jinnToastConfirm from @jinntec/jinntap/jinn-toast)
for a sticky toast with confirm/cancel actions that resolves to a boolean.