Lexical Vue is an extensible web text-editor component library for Vue 3, built upon Facebook's Lexical framework. It provides Vue components that wrap Lexical's core functionalities and plugins, allowing developers to integrate rich-text editing capabilities into their Vue applications. The current stable version is 0.14.1. The package follows Lexical's rapid release cadence, frequently bumping its dependency on `lexical` to keep up with the upstream project's evolution, often leading to minor version bumps with breaking changes from the underlying Lexical library. Key differentiators include its declarative Vue component API for managing editor state and plugins, and its direct integration with the powerful, extensible, and accessible Lexical editor core, contrasting with other Vue-specific editor solutions that might use different underlying architectures or are less frequently updated.
npm install lexical-vueVerified import paths — ran on the pinned version, not inferred.
Demonstrates a basic plain-text Lexical editor in Vue 3, including initial configuration, content editable area, and change event handling.
Update component names and import paths according to the new convention (e.g., `LexicalRichTextEditor` -> `RichTextEditor`, import from `'lexical-vue/RichTextEditor'`).
Review Lexical's upstream changelog for the corresponding version (e.g., 0.37.0, 0.38.1) and update any custom nodes, commands, or serialization logic accordingly. Test editor functionality thoroughly after upgrade.
Always check the release notes for `lexical-vue` and the corresponding Lexical version when upgrading. Expect potential breaking changes that require adjustments to custom Lexical nodes or editor configurations.
Replace `LexicalRichTextEditor` with `RichTextEditor` and ensure it's imported from `lexical-vue/RichTextEditor` (or similar for other renamed plugins).
Ensure your `lexical` and `lexical-vue` packages are compatible and that custom nodes are registered correctly in the `initialConfig.nodes` array or through a plugin's `createEditor` function, aligning with the Lexical version required by `lexical-vue`.
Import `LexicalComposer` and other plugins from their specific subpaths, e.g., `import { LexicalComposer } from 'lexical-vue/LexicalComposer'`.