Update v4.2 - New components, 10+ framework guides, and quality improvements. Visit Changelog

Tailwind CSS WYSIWYG Editor

WYSIWYG editors are interactive interface that allow users to input and format text as it will appear in its final output. They streamline content creation by providing a visual interface, eliminating the need for direct code manipulation.

Requires Additional Installation

Note that this component requires the use of the third-party Tiptap plugin.

Installation

  1. Add TipTap

    Include the JavaScript <script type="module"> near the end of your </body> tag:

    JavaScript
                              
                            
  2. Add extensions

    Add the extensions you plan to use.

    JavaScript
                              
                            
  3. Initialize TipTap

    Initialize TipTap with the options appropriate for your case.

    JavaScript
                              
                            
  4. Known issues

    Some TipTap extensions may be delivered with different versions of the prosemirror-model library. To avoid errors you should map different versions to the one.

    JavaScript
                              
                            

Default editor

Start with a standard TipTap toolbar for common formatting, lists, quotes, links, and inline code.

Custom blockquote style

Replace the default blockquote with a custom node view for a more decorative quote treatment.

Use the editor inside a modal dialog for compose and edit flows that open on demand.

© 2026 Preline Labs.