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.
Installation
To initialize the Editor, either:
Initializing with Webpack
-
Install Kendo UI and add a theme.
npm install --save @progress/kendo-ui npm install --save @progress/kendo-theme-default
-
Install the Kendo UI Editor package for Vue.
npm install --save @progress/kendo-editor-vue-wrapper
-
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' // This will import the entire Kendo UI library // As an alternative, you could import only the scripts that are used by a specific widget: // import '@progress/kendo-ui/js/kendo.editor' // Imports only the Editor script and its dependencies 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
- Modes
- Tools
- Formatting options
- File and image browsers
- Paste cleanup
- PDF export
- Immutable elements
- Keyboard navigation
- RTL support