Description
Vue Trix is a Vue component that wraps the Trix rich-text editor, so you can add a simple writing box to a Vue form. It supports two-way binding with v-model, which keeps the editor content in sync with your component data. The editor also auto-saves what the user has typed into the form input, so the text survives a browser crash or an accidental page refresh before the form is submitted. The README covers installation from npm or yarn, or directly from the latest GitHub repository. You can mount the component globally in main.js or use it inside a single component file, and the docs include a setup for Nuxt.js with server-side rendering. The guide explains how to integrate the editor with forms, which props to set, such as inputId and inputName, how to populate and track content, and how to handle attachment uploads by sending them to a remote server. It is aimed at developers who want a light rich-text field in a Vue project.…
Highlights
- Trix rich-text editor as a Vue component
- Two-way binding with v-model
- Auto-saves typed content in the form
- Nuxt.js setup and attachment upload handling
Ratings & Reviews
No ratings yet
Be the first to rate vue-trix.
People also visit

vue-quilly
Tiny Vue 3 component, that helps to create Quill v2 based WYSIWYG editors
vue-trix FAQ
What is Vue Trix?
A Vue component for the Trix rich-text editor. It gives you a writing box you can place in a form.
How do I install it?
Install it from npm or yarn, or from the latest GitHub repository. The README shows mounting it globally in main.js or as a single component.
Does it work with Nuxt?
The README includes a Nuxt.js setup with server-side rendering, using a mounting plugin and a change to the Nuxt config.
Can it save drafts?
Yes. The editor auto-saves what has been typed into the form input, in case the browser crashes or the page is refreshed before the form is submitted.
Can users attach files?
The docs cover binding attachment events and processing uploads to a remote server.
What are the best vue-trix alternatives?
Popular alternatives to vue-trix include vue2-editor, vue-quilly and ckeditor5-vue. See all vue-trix alternatives
















