Document templates
A Tool without Blocks of its own: “/template” opens a list and inserts a document structure in one edit.
Meeting notes, a bug report, a weekly update — the same structure every time. Templates are inserted by a Tool without Blocks of its own: it builds the structure from the kit's Blocks.
Try it
Type /template on an empty line and pick a template. One undo removes it entirely.
How it works
A Tool without an engine
engine: []: the Extensions are empty, because headings, lists and
the task list are kit Blocks. So the template needs a Preset where they are on; here it is full.
One transaction
insertContent inserts all the HTML at once: one history step, and Ctrl/⌘+Z removes the template,
not line by line.
The Schema applies to the template too
A Block of a disabled Tool unwraps into text, so a template with a table in basic comes in as
paragraphs instead of breaking the Document.