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',
})
];