# Yurich > Yurich is a headless rich text editor for React 18+. Install it with npm install yurich. The editable DOM is the document, and enabled extensions define the HTML it keeps. Use initialValue for the initial HTML and setHTML to load a different document. Read HTML with getHTML or onChange. JSON is available through getJSON and onChangeJSON. Package version: `0.1.2` Official documentation: [Yurich](https://leeyujoo.com/yurich/) ## Documentation - [Yurich overview](https://leeyujoo.com/yurich/overview.md): Building a toolbar, storing HTML, setting paste rules, and how commands reach the editor. - [Quick start and HTML persistence](https://leeyujoo.com/yurich/quick-start.md): React form integration, toolbar selection, and saving and restoring HTML. - [Features](https://leeyujoo.com/yurich/features.md): Built-in extensions, exact command names, editing behavior, and React hooks. - [Custom extensions](https://leeyujoo.com/yurich/extensions.md): mark and block factories, custom attributes and commands, and verification. - [API reference](https://leeyujoo.com/yurich/api.md): React hooks and components, editor options and methods, and HTML and JSON serializers. ## Optional - [Live editor](https://leeyujoo.com/yurich/#live-demo): Try the toolbar in the browser. - [Source code](https://github.com/YUJOO-LEE/yurich) - [npm package](https://www.npmjs.com/package/yurich): Releases and installation. - [AI integration guide (English)](https://leeyujoo.com/yurich/ai.md) ## Features - [Bold](https://leeyujoo.com/yurich/features/bold.md): Emphasize selected text with bold. - [Italic](https://leeyujoo.com/yurich/features/italic.md): Add emphasis or distinguish a title. - [Underline](https://leeyujoo.com/yurich/features/underline.md): Draw a line under selected text. - [Strikethrough](https://leeyujoo.com/yurich/features/strikethrough.md): Cross out text while keeping it visible. - [Inline code](https://leeyujoo.com/yurich/features/code.md): Format a short code snippet in a paragraph. - [Link](https://leeyujoo.com/yurich/features/link.md): Add a URL to a selection or insert a link at the caret. - [Heading](https://leeyujoo.com/yurich/features/heading.md): Turn paragraphs into headings from H1 to H6. - [Numbered list](https://leeyujoo.com/yurich/features/ordered-list.md): Number steps and other items in sequence. - [Bulleted list](https://leeyujoo.com/yurich/features/unordered-list.md): Group items into a bulleted list. - [Blockquote](https://leeyujoo.com/yurich/features/blockquote.md): Set a passage apart as a quotation. - [Code block](https://leeyujoo.com/yurich/features/code-block.md): Give multiline code its own preformatted block. - [Text alignment](https://leeyujoo.com/yurich/features/text-align.md): Align paragraphs and list items. - [Undo and redo](https://leeyujoo.com/yurich/features/history.md): Connect Undo and Redo controls to the editor history. - [Paste and schema](https://leeyujoo.com/yurich/features/clipboard.md): Choose which formats to keep when pasting. - [IME composition](https://leeyujoo.com/yurich/features/ime.md): Keep Korean, Japanese, and Chinese IME input intact when previewing HTML from a React contentEditable editor. - [HTML and JSON export](https://leeyujoo.com/yurich/features/html-and-json.md): Save editable HTML and read structured JSON. - [Reactive React state](https://leeyujoo.com/yurich/features/react-state.md): Subscribe to editor state from React controls. ## Custom extensions - [Create an inline format](https://leeyujoo.com/yurich/extensions/mark.md) - [Create a custom block](https://leeyujoo.com/yurich/extensions/block.md) - [Define an extension](https://leeyujoo.com/yurich/extensions/extension-object.md) - [Extension reference](https://leeyujoo.com/yurich/extensions/reference.md) - [Verify an extension](https://leeyujoo.com/yurich/extensions/verify.md) ## API Reference - [Create an editor](https://leeyujoo.com/yurich/api/use-editor.md): useEditor, EditorOptions - [Render the editable field](https://leeyujoo.com/yurich/api/react-components.md): EditorContent, EditorProvider, useEditorContext - [Run commands and connect controls](https://leeyujoo.com/yurich/api/commands-and-state.md): execute, isActive, useIsActive, useEditorState - [Read, replace, and undo](https://leeyujoo.com/yurich/api/editor-instance.md): getHTML, getJSON, setHTML, history, subscribe - [Serialize another element](https://leeyujoo.com/yurich/api/serializers.md): toHTML, toJSON ## Translations - [한국어](https://leeyujoo.com/yurich/ko/llms.txt) - [हिन्दी](https://leeyujoo.com/yurich/hi/llms.txt) - [简体中文](https://leeyujoo.com/yurich/zh-cn/llms.txt) - [Português (Brasil)](https://leeyujoo.com/yurich/pt-br/llms.txt) - [日本語](https://leeyujoo.com/yurich/ja/llms.txt) - [Bahasa Indonesia](https://leeyujoo.com/yurich/id/llms.txt) - [Deutsch](https://leeyujoo.com/yurich/de/llms.txt) - [Русский](https://leeyujoo.com/yurich/ru/llms.txt) - [Français](https://leeyujoo.com/yurich/fr/llms.txt)