@editable-kit/core
v1.1.1
Published
Framework-agnostic core for editable-kit — ProseMirror document types, TipTap extension sets, and the field editor lifecycle
Maintainers
Readme
@editable-kit/core
Framework-agnostic core for editable-kit. Depends on TipTap, not on any UI framework.
text(),paragraphs(),image(),imageAttrs()— build and read field documents- ProseMirror JSON types, augmentable via
@editable-kit/core/types - Per-variant TipTap extension sets, lazily loaded by
importEditor(variant) createFieldEditor()/destroyFieldEditor()— mount TipTap onto an existing element, so switching to edit mode adds no boxnodeDefaults/markDefaults— the node→element table a view-mode renderer walkspickFile()
If you are using Svelte, install @editable-kit/svelte instead — it depends on this and re-exports all of it.
Registering your own nodes and marks
declare module '@editable-kit/core/types' {
interface NodeTypes {
callout: { type: 'callout'; attrs: { tone: 'info' | 'warn' }; content?: PMNode[] };
}
}