A rich text component with inline editor for use with Puck
Visit https://puck-rich-text.tohuhono.com to try the demo.
This is it! Visit https://puckeditor.com to view the full Puck documentation.
npm i @tohuhono/puck-rich-text --save
In your Puck config:
// Puck.config.tsx
import type { Config } from "@measured/puck"
import { PuckRichText, PuckRichTextProps } from "@tohuhono/puck-rich-text"
export const config: Config<{
PuckRichText: PuckRichTextProps
}> = {
components: {
PuckRichText
}
}
To avoid nextjs import the incorrect render library you need to use the legacy import
// Puck.config.tsx
import type { Config } from "@measured/puck"
import { PuckRichText, PuckRichTextProps } from "@tohuhono/puck-rich-text/legacy"
export const config: Config<{
PuckRichText: PuckRichTextProps
}> = {
components: {
PuckRichText
}
}
MIT © Tohuhono ltd