Add the option in editor to write RTL direction when the interface language is not RTL language. #2852

Open
opened 2026-02-05 05:27:53 +03:00 by OVERLORD · 4 comments
Owner

Originally created by @eyal1izhaki on GitHub (Jun 14, 2022).

Describe the feature you'd like

I'm able to write in RTL direction only when the bookstack language is set to RTL language. (Hebrew in my case).
It would be nice if there will be an option to still use English interface, and write in RTL direction.

Thanks for this great product.

Describe the benefits this would bring to existing BookStack users

The ability to use non RTL interface while writing in RTL languages too.

Can the goal of this request already be achieved via other means?

No

Have you searched for an existing open/closed issue?

  • I have searched for existing issues and none cover my fundemental request

How long have you been using BookStack?

0 to 6 months

Additional context

No response

Originally created by @eyal1izhaki on GitHub (Jun 14, 2022). ### Describe the feature you'd like I'm able to write in RTL direction only when the bookstack language is set to RTL language. (Hebrew in my case). It would be nice if there will be an option to still use English interface, and write in RTL direction. Thanks for this great product. ### Describe the benefits this would bring to existing BookStack users The ability to use non RTL interface while writing in RTL languages too. ### Can the goal of this request already be achieved via other means? No ### Have you searched for an existing open/closed issue? - [X] I have searched for existing issues and none cover my fundemental request ### How long have you been using BookStack? 0 to 6 months ### Additional context _No response_
OVERLORD added the 🔨 Feature Request label 2026-02-05 05:27:53 +03:00
Author
Owner

@ravidshachar commented on GitHub (Jul 5, 2022):

I was able to workaround the issue by replacing every instance of 'ltr' to 'rtl' in the file 'wysiwyg-editor.blade.php'. personally I'm running linuxserver's docker image and used the following startup command for the docker container:
bash -c "/bin/sed -i 's/ltr/rtl/g' /var/www/html/resources/views/pages/parts/wysiwyg-editor.blade.php && /init"
not the best solution but it works for me.

@ravidshachar commented on GitHub (Jul 5, 2022): I was able to workaround the issue by replacing every instance of 'ltr' to 'rtl' in the file 'wysiwyg-editor.blade.php'. personally I'm running linuxserver's docker image and used the following startup command for the docker container: ` bash -c "/bin/sed -i 's/ltr/rtl/g' /var/www/html/resources/views/pages/parts/wysiwyg-editor.blade.php && /init" ` not the best solution but it works for me.
Author
Owner

@eyal1izhaki commented on GitHub (Jul 6, 2022):

Nice, I'll try it.

@eyal1izhaki commented on GitHub (Jul 6, 2022): Nice, I'll try it.
Author
Owner

@smallw00d2211 commented on GitHub (Jan 14, 2023):

Another workaround would be:

1- In the editor, click on <> (code), so you can see the code behind the text.
2- Add dir="rtl" attribute to your paragraph

Example: <p id="bkmrk-" dir="rtl">some rtl text</p>

As soon as you start writing back in editor, it keeps writing correct RTL within that paragraph

@smallw00d2211 commented on GitHub (Jan 14, 2023): Another workaround would be: 1- In the editor, click on `<>` (code), so you can see the code behind the text. 2- Add `dir="rtl"` attribute to your paragraph Example: `<p id="bkmrk-" dir="rtl">some rtl text</p>` As soon as you start writing back in editor, it keeps writing correct RTL within that paragraph
Author
Owner

@akkari93 commented on GitHub (Jul 31, 2024):

bumping this, please add it. It's very common to use the interface in English but type in Arabic. Also you may have books/shelves in different languages.

@akkari93 commented on GitHub (Jul 31, 2024): bumping this, please add it. It's very common to use the interface in English but type in Arabic. Also you may have books/shelves in different languages.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#2852