Skip to content
This repository was archived by the owner on Jan 19, 2026. It is now read-only.

Latest commit

 

History

History
43 lines (30 loc) · 1.32 KB

File metadata and controls

43 lines (30 loc) · 1.32 KB

Editor

Editor is a rich text editor built with Tiptap. See the Editor guide for dependencies and usage.

import { Editor } from '@atlas/ui';

Usage

<Editor v-model="content" placeholder="Write something..." />

API

Props

Name Type Default Description
modelValue string | null undefined Bound editor content.
placeholder string '' Placeholder text.
editorClass string 'p-4 text-black text-sm dark:text-white' Additional classes for the editor area.
autofocus boolean false Focus editor on mount.
toolbar boolean true Show the formatting toolbar.
toolbarOptions string[] ['bold', 'italic', 'strike', 'bullet', 'ordered', 'link', 'clear'] Array of toolbar buttons to display.
textOnly boolean false Restrict to plain text input.
toolbarClass string 'border-b border-surface-300 dark:border-surface-700' Additional classes for the toolbar.

Slots

Name Description
toolbar Customize the toolbar content.

Events

Name Payload Description
update:modelValue string Emitted with the current content.

No PrimeVue equivalent.