aor-rich-text-input icon indicating copy to clipboard operation
aor-rich-text-input copied to clipboard

How to set default direction on RTL in RichTextInput

Open alihesari opened this issue 6 years ago • 0 comments

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>
    );

alihesari avatar Apr 10 '18 15:04 alihesari