@syncfusion/ej2-vue-richtexteditor

30.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
30.1.39245latest
21.1.4219beta

Version History

VersionDownloads (Last 7 Days)Published
30.1.39245
30.1.38285
30.1.3725
29.2.11250
29.2.10177
29.2.94
29.2.817
29.2.558
29.2.43
29.1.4017
29.1.394
29.1.37330
29.1.3515
29.1.340
29.1.33109
28.2.11131
28.2.923
28.2.76
28.2.64
28.2.523
28.2.411
28.2.312
28.1.419
28.1.390
28.1.380
28.1.372
28.1.360
28.1.3548
28.1.3369
27.2.5101
27.2.40
27.2.30
27.2.22
27.1.580
27.1.571
27.1.552
27.1.5237
27.1.511
27.1.5015
27.1.4813
26.2.1432
26.2.131
26.2.120
26.2.110
26.2.101
26.2.90
26.2.81
26.2.71
26.2.534
26.2.40
26.1.424
26.1.410
26.1.401
26.1.380
26.1.3596
25.2.720
25.2.60
25.2.52
25.2.40
25.2.33
25.1.4212
25.1.41143
25.1.401
25.1.390
25.1.381
25.1.370
25.1.3522
24.2.935
24.2.81
24.2.70
24.2.42
24.2.30
24.1.472
24.1.460
24.1.4516
24.1.435
24.1.412
23.2.75
23.2.616
23.2.50
23.2.423
23.1.441
23.1.430
23.1.410
23.1.401
23.1.390
23.1.362
22.2.12127
22.2.100
22.2.91
22.2.58
22.1.390
22.1.380
22.1.361
21.1.4219
21.1.360
22.1.340
21.2.1041
21.2.90
21.2.80
21.2.60
21.2.50
21.2.40
21.2.30
21.1.412
21.1.390
21.1.373
21.1.350
20.4.533
20.4.520
20.4.511
20.4.500
20.4.490
20.4.480
20.4.440
20.4.431
20.4.421
20.4.400
20.4.380
20.3.610
20.3.601
20.3.590
20.3.560
20.3.500
20.3.470
20.2.500
20.2.490
20.2.460
20.2.451
20.2.441
20.2.430
20.2.400
20.2.394
20.2.381
20.2.360
20.1.610
20.1.600
20.1.590
20.1.581
20.1.570
20.1.560
20.1.551
20.1.520
20.1.510
20.1.500
20.1.481
20.1.470
19.4.5650
19.4.550
19.4.540
19.4.531
19.4.529
19.4.500
19.4.480
19.4.471
19.4.400
19.4.381
19.3.570
19.3.551
19.3.530
19.3.470
18.2.44-4568161
19.3.461
19.3.451
19.3.440
19.3.430
19.2.621
19.2.600
19.2.590
19.2.570
19.2.560
19.2.550
19.2.510
19.2.490
19.2.480
19.2.470
19.2.461
19.2.440
19.1.691
19.1.670
19.1.660
19.1.650
19.1.6426
19.1.638
19.1.593
19.1.570
19.1.560
19.1.550
19.1.540
18.4.4912
18.4.480
18.4.470
18.4.460
18.4.441
18.4.420
18.4.390
18.4.350
18.4.340
18.4.331
18.4.320
18.4.306
18.3.520
18.3.500
18.3.480
18.3.472
18.3.441
18.3.420
18.3.400
18.3.350
18.2.560
18.2.551
18.2.540
18.2.480
18.2.460
18.2.450
18.2.440
18.1.570
18.1.540
18.1.530
18.1.520
18.1.480
18.1.450
18.1.440
18.1.430
18.1.420
18.1.36-beta0
17.4.555
17.4.511
17.4.491
17.4.480
17.4.472
17.4.463
17.4.440
17.4.431
17.4.400
17.4.390
17.3.290
17.3.280
17.3.270
17.3.260
17.3.190
17.3.160
17.3.1438
17.3.9-beta0
17.2.520
17.2.510
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.360
17.2.350
17.2.340
17.2.28-beta0
17.1.490
17.1.481
17.1.470
17.1.430
17.1.420
17.1.400
17.1.380
17.1.32-beta1
16.4.550
16.4.540
16.4.530
16.4.520
17.1.1-beta0
16.4.480
16.4.470
16.4.461
16.4.440
16.4.421
16.4.40-beta0
16.3.340
16.3.330
16.3.301
16.3.290
16.3.270
16.3.241
16.3.220
16.3.211
16.3.170
16.2.520
16.2.511
16.2.500
16.2.490
16.2.480
16.2.470
16.2.460
16.2.450
16.2.441
16.2.410

Package Sidebar

Install

npm i @syncfusion/ej2-vue-richtexteditor

Weekly Downloads

2,488

Version

30.1.39

License

SEE LICENSE IN license

Unpacked Size

131 kB

Total Files

146

Last publish

Collaborators

  • syncfusionorg
  • essentialjs2
  • syncfusion-javascript