@syncfusion/ej2-angular-blockeditor
v35.1.37
Published
Feature Rich Block Editor control with built in support editing, formatting content. for Angular
Readme
Angular Block Editor Component
Using this package with an AI coding agent
Before generating Syncfusion code, ask your AI coding agent to run the Syncfusion setup using the following prompt:
Set up this project for Syncfusion before generating code. Fetch and follow the official instructions at https://ai.syncfusion.com, then report the detected platform, installed skill pack, MCP status, and any required licensing action.The setup detects your project’s platform and loads the appropriate Syncfusion skill pack. No Syncfusion account or MCP key is required to install or read Syncfusion agent skills.
Platform reference: https://ai.syncfusion.com/angular/llms.txt
The Syncfusion Angular Block Editor is a modern, block-based editor for creating rich and structured content. It is ideal for document editing, knowledge bases, note-taking, and content creation applications. The editor features an intuitive user interface, mobile support, and a modular architecture. It supports a variety of block types, inline elements such as mentions, links, and labels, slash commands, contextual menus, and real-time collaboration for simultaneous multi-user editing. The editor also provides well-structured content models and can generate valid HTML when required.
⚡️ Quick Start
This guide uses the Angular CLI as the development environment for the Angular Block Editor. Install Node.js v18 or later, and the Angular CLI v14 or later, before proceeding.
Create an Angular application
To set up the Angular CLI globally, run the following command.
npm install -g @angular/cliThen create a new application:
ng new my-appThis command prompts you to configure the stylesheet format, Server-Side Rendering (SSR/SSG), and AI tooling options. Select the options that best fit the project.
Navigate to the project folder:
cd my-appInstall the Block Editor package
The @syncfusion/ej2-angular-blockeditor package supports Angular 14 and later.
npm install @syncfusion/ej2-angular-blockeditorAdd the CSS reference
Install the Syncfusion® Tailwind 3 theme package:
npm install @syncfusion/ej2-material3-theme --saveThen add the following CSS reference to the src/styles.css file:
@import '../node_modules/@syncfusion/ej2-material3-theme/styles/blockeditor/index.css';Add the Block Editor component to your application
Add the Block Editor component to the src/app/app.ts file:
import { Component } from '@angular/core';
import { BlockEditorModule } from '@syncfusion/ej2-angular-blockeditor';
@Component({
selector: 'app-root',
imports: [BlockEditorModule],
template: `<ejs-blockeditor id="blockEditor" height="500px"></ejs-blockeditor>`
})
export class App {}Run the application
ng serve --openNow, open your project in a browser, and the Block Editor will be displayed! 🚀
✨ Key features
- Real-time collaboration: Real-time collaboration enables multiple users to create and edit content simultaneously with synchronized updates across all connected clients. It helps teams work together efficiently while maintaining content consistency and reducing editing conflicts.
- Multiple block types: Includes Heading levels 1-4, Table, Paragraph, Table, Lists, Checklist, Quote, Callout, Divider, Code block, and more.
- Slash commands: Interactive
/commands to insert or transform content blocks, with filtering and keyboard shortcuts. - Drag and drop: Reorder blocks effortlessly with built-in drag-and-drop support.
- Rich text formatting: Apply styles such as Bold, Italic, Underline, Strikethrough, Uppercase and more.
- Action menu: Perform block-level operations such as Move, Delete, and Duplicate.
- Contextmenu support: Right-click context menus for quick block actions.
- Inline content support: Insert inline elements like Links, Labels and Mention directly within blocks.
- Undo/Redo operations: Undo and redo support for the user interactions.
- Events for Customization: The Block Editor includes a rich set of events such as block addition, removal, update, selection change, command execution, paste, and mention selection allowing developers to customize and extend functionality easily.
- Accessibility & WCAG 2.0 Compliance: Accessibility support for assistive technologies and keyboard navigation.
- Keyboard Navigation: Navigate and manage blocks efficiently using intuitive keyboard shortcuts for a faster editing experience.
🛠️ Supported frameworks
blockeditor components are also offered in following list of frameworks.
| JavaScript | React | Vue | ASP.NET Core | ASP.NET MVC | | :-----: | :-----: | :-----: | :-----: | :-----: |
🏗️ Showcase samples
- Real-Time Collaborative Editing - Live Demo
- Loan Calculator - Source, Live Demo
- Cloud Pricing - Live Demo
📚 Resources
🤝 Support
Product support is available through following mediums.
- Support ticket - Guaranteed Response in 24 hours | Unlimited tickets | Holiday support
- Community forum
- GitHub issues
- Request feature or report bug
- Live chat
🔄 Changelog
Check the changelog here. Get minor improvements and bug fixes every week to stay up to date with frequent updates.
⚖️ License and copyright
This is a commercial product and requires a paid license for possession or use. Syncfusion’s licensed software, including this component, is subject to the terms and conditions of Syncfusion's EULA. To acquire a license for 140+ Angular UI components, you can purchase or start a free 30-day trial.
A free community license is also available for companies and individuals whose organizations have less than $1 million USD in annual gross revenue and five or fewer developers.
See LICENSE FILE for more info.
© Copyright 2026 Syncfusion® Inc. All Rights Reserved. The Syncfusion® Essential Studio® license and copyright applies to this distribution.
