All Components

Editor Overview

The Editor allows the user to create rich textual content through a What-You-See-Is-What-You-Get (WYSIWYG) interface.

It provides the core HTML editing engine, which includes basic text formatting, hyperlinks, lists, and image handling.

The Editor wrapper for Vue is a client-side wrapper for the Kendo UI Editor widget.

Basic Usage

The following example demonstrates how to initialize the Editor.

<div id="vueapp" class="vue-app">
   <kendo-editor :resizable-content="true"
                 :resizable-toolbar="true"
                 :value="htmlText"
                 style="height:280px"
                 rows="10"
                 cols="30">
    </kendo-editor>
</div>
Vue.use(EditorInstaller);

new Vue({
    el: "#vueapp",
        data () {
            return {
                htmlText: `<p>
                    The Kendo UI Editor allows your users to edit HTML in a familiar, user-friendly way.<br />
                    In this version, the Editor provides the core HTML editing engine, which includes basic text formatting, hyperlinks, lists,
                    and image handling. The widget <strong>outputs identical HTML</strong> across all major browsers, follows
                    accessibility standards, and provides API for content manipulation.
                </p>
                <p>Features include:</p>
                <ul>
                        <li>Text formatting & alignment</li>
                        <li>Bulleted and numbered lists</li>
                        <li>Hyperlink and image dialogs</li>
                        <li>Cross-browser support</li>
                        <li>Identical HTML output across browsers</li>
                        <li>Gracefully degrades to a <code>textarea</code> when JavaScript is turned off</li>
                </ul>`
            }
        }
})

Installation

To initialize the Editor, either:

Initializing with Webpack

  1. Install Kendo UI and add a theme.

    npm install --save @progress/kendo-ui
    npm install --save @progress/kendo-theme-default
  2. Install the Kendo UI Editor package for Vue.

    npm install --save @progress/kendo-editor-vue-wrapper
  3. Import the Kendo UI packages to the App component. If you use the Kendo UI components more than once in your application, add all Kendo UI-related files to the main.js file. If you use the Kendo UI components once in your application, add the Kendo UI-related files the component where they will be referred.

    import '@progress/kendo-ui'
    import '@progress/kendo-theme-default/dist/all.css'
    
    import { Editor } from '@progress/kendo-editor-vue-wrapper'
    import { EditorTool } from '@progress/kendo-editor-vue-wrapper'
    import { EditorInstaller } from '@progress/kendo-editor-vue-wrapper'
    
    Vue.use(EditorInstaller)
    
    new Vue({
      el: '#app',
      components: {
          Editor
      }
    })

Functionality and Features

In this article