Skip to content
This repository has been archived by the owner on May 4, 2019. It is now read-only.

How to set default direction on RTL in RichTextInput #18

Open
alihesari opened this issue Apr 10, 2018 · 0 comments
Open

How to set default direction on RTL in RichTextInput #18

alihesari opened this issue Apr 10, 2018 · 0 comments

Comments

@alihesari
Copy link

I'm using the Admin-on-rest framework. I read AOS and Quill documents and don't find any solution.
How to set default direction on RTL in RichTextInput?
I want to it always be right-to-left.

    export const BookCreate = (props) => (
        <Create {...props} title="ایجاد کتاب جدید">
            <SimpleForm>
                <TextInput label="عنوان کتاب" source="title" />
                <RichTextInput label="توضیحات" source="description" formats={[{direction:'rtl'}]} toolbar={[ 
                    ['bold', 'italic', 'underline', 'link'],
                    [{ 'direction': 'rtl' }],
                    [{ 'align': [] }],
                    ['clean'],
                    [{ 'list': 'ordered'}, { 'list': 'bullet' }],
                ]} />
            </SimpleForm>
        </Create>
    );
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant