Insert blocks with slash commands or the empty-line floating menu.
npx shadcn@latest add @shadcnblocks/editor-editor-slash-1
Sign in or get a license at Shadcn Blocks to see its source and install it.