Skip to content

Editor

Editor

PEditor is a contenteditable rich text input with formatting controls for headings, emphasis, and lists.

Demo

Usage

<PEditor v-model="body">
Message
</PEditor>

Props

PropTypeDefaultNotes
modelValueString | nullnullVue 3 model value (v-model).
valueString''Legacy fallback value when modelValue is null.
disabledBooleanfalseDisables editing and toolbar interaction.

Events

EventPayloadDescription
update:modelValueStringEmitted whenever editor content changes.
inputStringLegacy input event with current HTML content.

Slots

SlotDescription
defaultFloating label text.