Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
You can select the language, and indeed the toolbar becomes RTL for Arabic. However, the editor content body doesn't respect that setting, nor the html body/head tags for RTL.
The solution is to add the following to the CKeditor Profile > advanced options > custom javascript configuration
contentsLangDirection = 'rtl';
Can someone add this to the Documentation? Or better yet, turn this into an actual configuration setting under the language option, e.g. Force RTL: Yes/no
Comments
Comment #1
mephir CreditAttribution: mephir commentedI can't reproduce your problem, i have everything correct. After save, drupal return only text with lte. Can you write something more about web browser, ckeditor version ?
Comment #2
wwalc CreditAttribution: wwalc commentedI think we definitely need two toolbar buttons for easier switching beteen RTL/LTR instead of doing it through styles dropdown list.
Regarding adding contentsLangDirection to the Profile.. hmm that might be a good idea as well.
Comment #3
mephir CreditAttribution: mephir commentedChanges commited to CVS, with another select in profile with language direction settings.
Comment #5
yuseferi CreditAttribution: yuseferi commenteduse this module
https://www.drupal.org/project/ckeditor_bidi
could be helpful.