Skip to content

Text Direction

The Text Direction extension allows you to change the text direction of your editor.

Usage

tsx
import { TextDirection } from 'reactjs-tiptap-editor'; 

const extensions = [
  ...,
  // Import Extensions Here
  TextDirection 
];

Configuration

tsx
import { TextDirection } from 'reactjs-tiptap-editor'; 

const extensions = [
  ...,
  // Import Extensions Here
  TextDirection.configure({ 
    types: ['heading', 'paragraph', 'blockquote', 'list_item'], 
    directions: ['ltr', 'rtl'], 
    defaultDirection: 'ltr', 
  }) 
];

Source

SourceDocs

Contributors

Changelog

v0.0.38 on 9/25/2024
c1267 - feat: add text direction

Made with ❤️