Text Editor - API

Generated reference for Text Editor props, methods, parts, context accessors, and types.

#Import

import { TextEditor } from '@primeui/vue-texteditor';

#API

The generated section below comes from the public TextEditor metadata. Use it for TextEditor.Root props, the value formats exposed on the default slot (getHTML, getJSON, getBlocks, getText, getMarkdown, setValue), instance methods, public interfaces, and generated style classes.

NeedStart here
Root props and defaultsProps table in this page
PartsArchitecture
Context accessorsContext table below, then the matching feature page
Styling hooksTheming
Accessibility expectationsAccessibility

The API table is the contract. Feature pages add usage context, command examples, and complete demos for the same props and commands.

#Context Accessors

Each part exposes its commands, state, and request data through a matching context accessor. Descendant widgets call the accessor instead of receiving slot props, which keeps custom UI free of prop drilling.

AccessorPartExposes
useTextEditorContext()TextEditor.Rootcommands, state, pluginCommands, the value formats (getHTML, getJSON, getBlocks, getText, getMarkdown, setValue), and disabled / readonly
useContextToolbarContext()TextEditor.ContextToolbarSelection-anchored commands and state for the floating bar
useBlockControlsContext()TextEditor.BlockControlsThe hovered block's index, blockType, and block commands
useBlockMenuContext()TextEditor.BlockMenuBlock options commands and the active block descriptor
useSlashMenuContext()TextEditor.SlashMenuInsertion commands, state, filterText, position, and dismiss
useMentionMenuContext<T>()TextEditor.MentionMenuTyped items, filterText, position, and commands.select
useUploadContext()TextEditor.ImageUpload / TextEditor.DocumentUploadUpload progress, accepted files, and upload commands
useTableControlsContext()TextEditor.TableControlsTable commands and the current cell/selection state
useNavigatorContext()TextEditor.NavigatorThe document heading outline and scroll commands

The same data is also surfaced as slot props on each part for one-off prototyping. See the feature pages for per-part examples.