Hooks and components for consuming remirror with your fave framework React.
Overall
score
36%
Evaluation — 36%
↑ 1.09xAgent success when using this tile
Build a helper that wires up a rich-text manager and a DOM-backed editor view inside a React app. The helper should accept extension factories, create a manager and state from them, mount a view onto a provided element, relay JSON updates, and provide teardown for reuse.
@generates
export type ExtensionFactory = () => unknown;
export interface BootstrapOptions {
extensions: ExtensionFactory[];
initialContent?: string;
contentFormat?: 'html' | 'json';
rootElement: HTMLElement;
onJsonChange?: (json: unknown) => void;
}
export interface BootstrapResult {
manager: unknown;
view: unknown;
getState: () => unknown;
destroy: () => void;
}
export function bootstrapReactEditor(options: BootstrapOptions): BootstrapResult;Provides manager and view creation utilities for React-based editors.
docs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10