diff --git a/.changeset/khaki-seals-smell.md b/.changeset/khaki-seals-smell.md new file mode 100644 index 0000000000..9279c51d4f --- /dev/null +++ b/.changeset/khaki-seals-smell.md @@ -0,0 +1,5 @@ +--- +'@udecode/plate-selection': minor +--- + +Feat: api.blockSelection.selectBlocks diff --git a/.changeset/plenty-rivers-repeat.md b/.changeset/plenty-rivers-repeat.md new file mode 100644 index 0000000000..16a63730af --- /dev/null +++ b/.changeset/plenty-rivers-repeat.md @@ -0,0 +1,5 @@ +--- +'@udecode/plate-ai': patch +--- + +Fix replaceSelection, insertBelow diff --git a/apps/www/content/docs/en/components/changelog.mdx b/apps/www/content/docs/en/components/changelog.mdx index fa4bb148b6..dd70518f91 100644 --- a/apps/www/content/docs/en/components/changelog.mdx +++ b/apps/www/content/docs/en/components/changelog.mdx @@ -21,8 +21,6 @@ const aiEditor = usePlateEditor({ plugins }); useAIChatEditor(aiEditor, content); ``` - - ### January 12 #18.2 - `ai-plugins`: remove `createAIEditor`, it's now created in `ai-chat-editor` diff --git a/apps/www/content/docs/en/form.mdx b/apps/www/content/docs/en/form.mdx new file mode 100644 index 0000000000..3784c5a628 --- /dev/null +++ b/apps/www/content/docs/en/form.mdx @@ -0,0 +1,428 @@ +--- +title: Form +description: How to integrate Plate editor with react-hook-form. +--- + +While Plate is typically used as an **uncontrolled** input, there are valid scenarios where you want to integrate the editor within a form library like [**react-hook-form**](https://www.react-hook-form.com) or the [**Form**](https://ui.shadcn.com/docs/components/form) component from **shadcn/ui**. This guide walks through best practices and common pitfalls. + +## When to Integrate Plate with a Form + +- **Form Submission**: You want the editor's content to be included along with other fields (e.g., ``, `