@syncfusion/ej2-vue-richtexteditor

29.1.39 • Public • Published

Vue RichTextEditor Component

The Vue Rich Text Editor component is a feature-rich WYSIWYG HTML editor and WYSIWYG Markdown editor. The Rich Text Editor is widely used to create blogs, forum posts, notes sections, comment sections, messaging applications, and more. The control provides an efficient user interface for a better editing experience with mobile support. It has a variety of tools to edit and format rich content, and it return a valid HTML markup or Markdown (MD) content. It allows users to insert images, links, tables, media files and lists with modular architectures.

Getting started . Online demos . Learn more

Vue RichTextEditor Component

Trusted by the world's leading companies Bootstrap logo

Setup

Create a Vue Application

You can use Vue CLI to setup your Vue 2 applications.To install Vue CLI use the following commands.

npm install -g @vue/cli
vue create quickstart
cd quickstart
npm run serve

Initiating a new project prompts us to choose the type of project to be used for the current application. Select the option Default ([Vue 2] babel, eslint) from the menu.

Adding Syncfusion® Rich Text Editor package

All Syncfusion® Vue packages are published in npmjs.com registry. To install Vue Rich Text Editor package, use the following command.

npm install @syncfusion/ej2-vue-richtexteditor --save

Registering Rich Text Editor Component

You can register the Rich Text Editor component in your application by using the Vue.use(). Refer to the code example given below.

import { RichTextEditorPlugin } from '@syncfusion/ej2-vue-richtexteditor';
Vue.use(RichTextEditorPlugin);

Registering RichTextEditorPlugin in vue, will register the Rich Text Editor component along with its required child directives globally.

Adding CSS references for Rich Text Editor

Add CSS references needed for Rich Text Editor in style section of the App.vue file from ../node_modules/@syncfusion package folder.

<style>
    @import "../node_modules/@syncfusion/ej2-base/styles/bootstrap5.css";
    @import "../node_modules/@syncfusion/ej2-inputs/styles/bootstrap5.css";
    @import "../node_modules/@syncfusion/ej2-lists/styles/bootstrap5.css";
    @import "../node_modules/@syncfusion/ej2-popups/styles/bootstrap5.css";
    @import "../node_modules/@syncfusion/ej2-buttons/styles/bootstrap5.css";
    @import "../node_modules/@syncfusion/ej2-navigations/styles/bootstrap5.css";
    @import "../node_modules/@syncfusion/ej2-splitbuttons/styles/bootstrap5.css";
    @import "../node_modules/@syncfusion/ej2-vue-richtexteditor/styles/bootstrap5.css";
</style>

Add Rich Text Editor Component

Add the Vue Rich Text Editor by using ejs-richtexteditor selector in template section of the App.vue file.

<template>
    <ejs-richtexteditor ref="defaultRTE" :height="400">
        <p>The Rich Text Editor component is WYSIWYG ("what you see is what you get") editor that provides the best user experience to create and update the content.Users can format their content using standard toolbar commands.</p>
    </ejs-richtexteditor>
</template>

<script>
    import Vue from "vue";
    import { RichTextEditorPlugin, Toolbar, Link, Image, Count, HtmlEditor, QuickToolbar } from "@syncfusion/ej2-vue-richtexteditor";

    Vue.use(RichTextEditorPlugin);

    export default {
        provide: {
            richtexteditor:[Toolbar, Link, Image, Count, HtmlEditor, QuickToolbar]
        }
    }
</script>

<style>
@import "../node_modules/@syncfusion/ej2-base/styles/bootstrap5.css";
@import "../node_modules/@syncfusion/ej2-inputs/styles/bootstrap5.css";
@import "../node_modules/@syncfusion/ej2-lists/styles/bootstrap5.css";
@import "../node_modules/@syncfusion/ej2-popups/styles/bootstrap5.css";
@import "../node_modules/@syncfusion/ej2-buttons/styles/bootstrap5.css";
@import "../node_modules/@syncfusion/ej2-navigations/styles/bootstrap5.css";
@import "../node_modules/@syncfusion/ej2-splitbuttons/styles/bootstrap5.css";
@import "../node_modules/@syncfusion/ej2-vue-richtexteditor/styles/bootstrap5.css";
</style>

Refer the Getting Started with Vue3 for using Syncfusion® Vue components in Vue 3 applications.

Supported frameworks

RichTextEditor component is also offered in the following frameworks.


     JavaScript    

       Angular      

       React      

       ASP.NET Core  

  ASP.NET MVC  

Showcase samples

Key features

  • Edit mode - HTML content is possible to edit in a div element or an iframe in the rich text editor.
  • Markdown editor - The rich text editor allows you to edit Markdown content using the Markdown syntax.
  • Markdown content preview - Preview of the modified Markdown content in the editor, you can give users the ability to see what the formatted content will look like before they save it.
  • HTML code editing - The rich text editor allows users to edit the HTML code directly in the HTML code view. This can be useful for users who are familiar with HTML and want to have more control over the formatting and layout of their content.
  • Tools - The rich text editor handles a wide range of features, including inserting images, hyperlinks, tables, formatting tools, and more.
  • Toolbar appearance - The rich text editor can provide a fully customizable toolbar that allows users to access the various formatting and editing options that are available.
  • Undo and redo - Users can use undo and redo actions to reverse or repeat actions they took while editing the content.
  • Module injection - It is possible to create a editor that utilizes a modular library to load the necessary functionality on demand. This can be useful for optimizing the performance of the editor.
  • Third-party integration - It is possible to integrate a third-party library into a rich text editor to add additional functionality or features to the editor like Code-mirror, Embedly and more.

Support

Product support is available through following mediums.

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® licensed software, including this component, is subject to the terms and conditions of Syncfusion® EULA. To acquire a license for 80+ Vue 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 2025 Syncfusion® Inc. All Rights Reserved. The Syncfusion® Essential Studio® license and copyright applies to this distribution.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
29.1.39270latest
21.1.4220beta

Version History

VersionDownloads (Last 7 Days)Published
29.1.39270
29.1.37103
29.1.3526
29.1.34483
29.1.337
28.2.11103
28.2.9299
28.2.726
28.2.68
28.2.550
28.2.48
28.2.33
28.1.411
28.1.390
28.1.380
28.1.373
28.1.360
28.1.350
28.1.3314
27.2.5130
27.2.40
27.2.30
27.2.20
27.1.580
27.1.570
27.1.552
27.1.5240
27.1.510
27.1.506
27.1.482
26.2.1435
26.2.130
26.2.121
26.2.110
26.2.100
26.2.90
26.2.87
26.2.79
26.2.512
26.2.40
26.1.421
26.1.410
26.1.401
26.1.380
26.1.3577
25.2.771
25.2.64
25.2.545
25.2.40
25.2.32
25.1.426
25.1.41141
25.1.400
25.1.391
25.1.380
25.1.371
25.1.353
24.2.952
24.2.80
24.2.70
24.2.42
24.2.32
24.1.470
24.1.468
24.1.453
24.1.430
24.1.417
23.2.73
23.2.60
23.2.50
23.2.413
23.1.442
23.1.431
23.1.411
23.1.400
23.1.390
23.1.361
22.2.12109
22.2.101
22.2.90
22.2.56
22.1.391
22.1.381
22.1.360
21.1.4220
21.1.360
22.1.347
21.2.1058
21.2.90
21.2.80
21.2.61
21.2.51
21.2.40
21.2.30
21.1.410
21.1.391
21.1.375
21.1.350
20.4.537
20.4.521
20.4.511
20.4.500
20.4.490
20.4.480
20.4.441
20.4.430
20.4.420
20.4.400
20.4.381
20.3.611
20.3.6023
20.3.590
20.3.560
20.3.500
20.3.470
20.2.5064
20.2.491
20.2.460
20.2.450
20.2.441
20.2.430
20.2.400
20.2.394
20.2.380
20.2.360
20.1.611
20.1.600
20.1.590
20.1.580
20.1.570
20.1.561
20.1.550
20.1.521
20.1.510
20.1.501
20.1.481
20.1.470
19.4.567
19.4.550
19.4.540
19.4.530
19.4.520
19.4.500
19.4.480
19.4.471
19.4.400
19.4.382
19.3.571
19.3.550
19.3.530
19.3.470
18.2.44-456889
19.3.460
19.3.450
19.3.441
19.3.430
19.2.620
19.2.602
19.2.591
19.2.570
19.2.560
19.2.551
19.2.510
19.2.490
19.2.481
19.2.471
19.2.460
19.2.440
19.1.695
19.1.671
19.1.660
19.1.650
19.1.6411
19.1.634
19.1.5930
19.1.571
19.1.561
19.1.550
19.1.540
18.4.4922
18.4.480
18.4.471
18.4.461
18.4.440
18.4.420
18.4.392
18.4.352
18.4.340
18.4.330
18.4.320
18.4.301
18.3.521
18.3.501
18.3.480
18.3.470
18.3.441
18.3.420
18.3.400
18.3.350
18.2.560
18.2.550
18.2.540
18.2.481
18.2.461
18.2.450
18.2.440
18.1.571
18.1.541
18.1.531
18.1.520
18.1.4810
18.1.451
18.1.440
18.1.430
18.1.420
18.1.36-beta1
17.4.558
17.4.511
17.4.490
17.4.480
17.4.470
17.4.466
17.4.446
17.4.430
17.4.405
17.4.390
17.3.291
17.3.280
17.3.270
17.3.261
17.3.191
17.3.161
17.3.1414
17.3.9-beta1
17.2.523
17.2.511
17.2.490
17.2.48-beta0
17.2.29-beta0
17.2.470
17.2.460
17.2.410
17.2.390
17.2.361
17.2.350
17.2.340
17.2.28-beta0
17.1.490
17.1.480
17.1.470
17.1.430
17.1.421
17.1.400
17.1.381
17.1.32-beta0
16.4.550
16.4.541
16.4.531
16.4.521
17.1.1-beta0
16.4.480
16.4.472
16.4.460
16.4.441
16.4.420
16.4.40-beta0
16.3.341
16.3.332
16.3.300
16.3.290
16.3.270
16.3.240
16.3.220
16.3.210
16.3.171
16.2.520
16.2.510
16.2.500
16.2.490
16.2.480
16.2.471
16.2.460
16.2.450
16.2.440
16.2.410

Package Sidebar

Install

npm i @syncfusion/ej2-vue-richtexteditor

Weekly Downloads

2,689

Version

29.1.39

License

SEE LICENSE IN license

Unpacked Size

131 kB

Total Files

146

Last publish

Collaborators

  • syncfusionorg
  • essentialjs2
  • syncfusion-javascript