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

mephir’s picture

Status: Active » Postponed (maintainer needs more info)

I 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 ?

wwalc’s picture

Assigned: Unassigned » wwalc
Category: task » feature
Status: Postponed (maintainer needs more info) » Active

I 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.

mephir’s picture

Status: Active » Fixed

Changes commited to CVS, with another select in profile with language direction settings.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

yuseferi’s picture

Issue summary: View changes

use this module

https://www.drupal.org/project/ckeditor_bidi

could be helpful.