---
title: "Introduction to the Vue 3 Editor"
description: "A Vue 3 Composition API rich text editor bound with v-model, with typed events and slots, native browser editing, and no runtime dependencies."
head:
- - meta
- name: robots
content: 'index, follow, max-image-preview:large, max-snippet:-1, max-video-preview:-1'
- - meta
- name: googlebot
content: 'index, follow, max-image-preview:large, max-snippet:-1, max-video-preview:-1'
- - meta
- name: bingbot
content: 'index, follow, max-image-preview:large, max-snippet:-1, max-video-preview:-1'
---
Are you an LLM? You can read better optimized documentation at https://raw.githubusercontent.com/eramitgupta/erag/main/text-editor-vue/docs/introduction.md
# Introduction to the Vue 3 text editor
`@erag/text-editor-vue` is a rich text editor for Vue 3 that you drop into a `
```
Typing or running an editor action updates the generated HTML. The component emits `update:modelValue` only when that HTML changes. A new external model value updates the canvas without publishing the same value back in a loop.
## Defaults and explicit configuration
Omitting `init` enables the full standard editor. Passing a partial object keeps defaults for omitted properties. Explicit toolbar and menubar choices are exact, and explicit plugin arrays filter plugin-backed controls instead of silently restoring excluded features.
```ts
import type { EditorInit } from '@erag/text-editor-vue';
const commentEditor: EditorInit = {
height: 240,
menubar: false,
statusbar: false,
plugins: ['history', 'formatting', 'lists', 'link'],
toolbar: 'bold italic | bullist numlist checklist | link',
};
```
## Browser API limitations
Native `contenteditable` and editing commands have small browser differences. Clipboard operations require a user gesture and can be blocked by permissions. Fullscreen uses the Fullscreen API with a CSS fallback. Image uploads require a handler or URL supplied by your application.
The component is SSR-safe during initialization, but browser-only utilities cannot sanitize on the server. Always sanitize untrusted HTML again at your backend boundary.
## Feature documentation map
| Package area | Documentation |
| -------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Controlled HTML, reactive config, disabled/readonly, methods | [Basic and reactive usage](/usage.html), [API reference](/api.html) |
| Menubar, toolbar overflow, history, clipboard, shortcuts, status, resize, print | [Menubar customization](/menubar-customization.html), [Workflow and responsive UI](/editing-experience.html) |
| Headings, fonts, colors, line height, case, list styles, checklists, indentation | [Text formatting](/text-formatting.html), [Lists, checklists, and indentation](/lists-and-indentation.html) |
| Links, anchors, video, audio, iframe, and tables | [Links and anchors](/links-and-anchors.html), [Media and embeds](/media-and-embeds.html), [Table editor](/table-editor.html) |
| Mentions, merge tags, and consumer-defined templates | [Mentions](/mentions.html), [Merge tags](/merge-tags.html), [Templates](/templates.html) |
| File/URL/paste image uploads, alignment, resize, and deletion | [Image uploads](/image-upload.html) |
| Emoji, symbols, horizontal rules, and date-time | [Special characters and emoji](/special-characters.html), [Horizontal rules and date-time](/horizontal-rules-and-datetime.html) |
| Source HTML, preview, fullscreen, find, and replace | [Code, preview, and fullscreen](/code-and-preview.html), [Find and replace](/find-and-replace.html) |
| Sanitization, scoped CSS, themes, public types, and Laravel integration | [Security](/security.html), [CSS customization](/css-customization.html), [TypeScript types](/types.html), [Laravel and Inertia](/laravel-integration.html) |
## Next steps
Start with [installation](/installation.html), continue to [basic usage](/usage.html), and review the [editor workflow and responsive UI](/editing-experience.html). Use the [configuration reference](/configuration.html) for the complete option list.
Working demos with copyable SFC code are on the [examples page](./examples.html), and the [contributing guide](./contributing.html) covers building the package from source.