BookStack icon indicating copy to clipboard operation
BookStack copied to clipboard

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

Open eyal1izhaki opened this issue 2 years ago • 4 comments

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

eyal1izhaki avatar Jun 14 '22 15:06 eyal1izhaki

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 avatar Jul 05 '22 12:07 ravidshachar

Nice, I'll try it.

eyal1izhaki avatar Jul 06 '22 14:07 eyal1izhaki

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 avatar Jan 13 '23 21:01 smallw00d2211