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.

Installation

To initialize the Editor, either:

Initializing from CDN

The following example demonstrates how to initialize the Editor component by using the CDN services. To access all CDN references, open the sample in Plunker.

<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>Some sample text.</p>"
        }
    }
})

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
      }
    })

Features and Functionalities

In this article