Reference
Reference documentation for the editor’s APIs, plugins, and tools.
The useEditor and useEditorSelector hooks for interacting with the editor programmatically.
Complete reference for defineBehavior: all native, synthetic, and custom event types, guard patterns, and action types (execute, forward, raise, effect).
Pure functions for deriving state from the editor snapshot. Includes block selectors, span selectors, selection state, active marks, and text position utilities.
The @portabletext/keyboard-shortcuts package. Platform-aware shortcuts for common formatting operations.
Available editor plugins: markdown shortcuts, emoji picker, input rules, character pair decorators, paste link, one-line mode, typeahead picker, and typography transforms.
The @portabletext/toolbar package. React hooks for building toolbar UI components.