bastihilger/nova-tiptap

RTL support

Aliaaaam opened this issue · 3 comments

Is there any way to add rtl support as well?

Hi @Aliaaaam,
I would like to help here, but I need to know more exactly what you had in mind. Would it be enough that all block elements inside the editor had the attribute dir="auto", so that they automatically are RTL when using for example arabic text? Or is it needed to have an option to set the whole editor to dir="rtl" ?

Hey @manogi
I think having a button to switch between dir="rtl" and dir="ltr" in blocks is more appropriate in terms of UX, although having dir="auto" is completely okay and quickly can be implemented with the current scheme.

RTL is now supported as button that switches rtl on and off:

CleanShot 2022-01-10 at 12 47 54@2x

CleanShot 2022-01-10 at 12 48 30@2x