BookStack
BookStack copied to clipboard
Add the option in editor to write RTL direction when the interface language is not RTL language.
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
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.
Nice, I'll try it.
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