syncfusion-react-blockeditor

Implement the Syncfusion React BlockEditor component for block-based rich content editing.

Updated Jul 3, 2026
One-click install
npx skills add https://github.com/haresh-sai06/HF_APP_Frontend --skill syncfusion-react-blockeditor-haresh-sai06
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: syncfusion-react-blockeditor
Source: https://github.com/haresh-sai06/HF_APP_Frontend/tree/main/.agents/skills/syncfusion-react-blockeditor
Command: npx skills add https://github.com/haresh-sai06/HF_APP_Frontend --skill syncfusion-react-blockeditor-haresh-sai06

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @syncfusion/ej2-react-blockeditor, @syncfusion/ej2-base, and includes references (resource) components.

What problem does it solve? Building a modern block-based rich text editor in React from scratch requires handling block architecture, menus, drag-and-drop, formatting, and accessibility. This Skill provides complete guidance for implementing the Syncfusion React BlockEditor component so you can ship document editors, CMS interfaces, and note-taking apps without guessing API details. ## Core Features & Use Cases - Block-Based Editing: Configure paragraphs, headings, lists, tables, code blocks, quotes, callouts, and collapsible sections as discrete, reorderable blocks. - Menus and Toolbars: Customize slash commands, context menus, inline toolbars, block action menus, and block type transforms with correct event args. - Content Management: Export content as JSON or HTML, enable drag-and-drop reordering, undo/redo, paste cleanup, mentions, labels, and read-only mode. - Use Case: Build a CMS editor where authors type "/" to insert blocks, drag blocks to reorder, mention teammates with @, and export the document as JSON for storage. ## Quick Start Ask the AI to create a React component using the Syncfusion BlockEditor with an initial heading and paragraph block, including the required CSS theme import.

Frequently Asked Questions about syncfusion-react-blockeditor

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add the Syncfusion BlockEditor to a React app?▼

Install @syncfusion/ej2-react-blockeditor, import BlockEditorComponent and a theme CSS file such as styles/material.css, then pass an array of BlockModel objects to the blocks prop. Each block defines an id, blockType, and content array.

How do I customize the slash command menu in BlockEditor?▼

Use the commandMenuSettings prop with a CommandMenuSettingsModel containing custom commands, popup dimensions, and filtering or itemSelect event handlers. The filtering event provides args.text for the query and args.commands for the filtered list.

Does the Syncfusion BlockEditor support drag-and-drop block reordering?▼

Yes, drag-and-drop reordering is enabled by default through the enableDragAndDrop prop. The component fires blockDragStart, blockDragging, and blockDropped events so you can track or customize the reordering behavior.

How do I export BlockEditor content as JSON or HTML?▼

Call getDataAsJson on the component ref to export the current content as JSON. The editor also supports HTML export and parsing HTML back into blocks for import workflows.

Why is my BlockEditor toolbarSettings prop not working?▼

The BlockEditor API has no toolbarSettings prop; that is a common mistake. Use inlineToolbarSettings for the text-selection toolbar, and configure commandMenuSettings, contextMenuSettings, or blockActionMenuSettings for other menus.

Is the Syncfusion BlockEditor accessible for screen readers?▼

Yes, the BlockEditor targets WCAG 2.1 compliance with keyboard navigation, ARIA attributes, focus management, and screen reader support for tools like NVDA, JAWS, and VoiceOver. You can add aria-label and aria-describedby attributes for additional context.