Image

Image nodes inserted by URL from the toolbar.

UIrich-text-editor-imageView JSON

Preview

Installation

Add the item with the shadcn CLI, or copy the source manually.

pnpm dlx shadcn@latest add litingyes/blocove/rich-text-editor-image

Requires a shadcn/ui project set up with Base UI primitives. Blocove is developed against the b0 preset, but it installs no base config or theme tokens: your own preset, fonts and colors stay in place.

Or install from the namespace after adding the registry: npx shadcn@latest add @blocove/rich-text-editor-image

Typography is provided by shadcn/typeset. Copy typeset.css next to your stylesheet, import it after Tailwind and add the .typeset-docs preset. See the Rich text editor setup.

API Reference

Props accepted by the exported components.

EditorImage

Registers the image node. Options pass through to the Tiptap extension; uploads are not included, the toolbar inserts by URL.

PropTypeDefault
...optionsPartial<ImageOptions>-

EditorImageToolbar

Toolbar control with a URL popover. Opening it while an image is selected pre-fills the current source.

PropTypeDefault
classNamestring-