Hello,
When choosing the CSS mode to be "none" or "self", it uses the standalone "ckeditor.css" file.
ckeditor.css is not RTL-ready, as it uses "margin-left" for implementing indentation.
For fixing that, I've done two things:
1. Updated ckeditor.module to also add 'style-rtl.css' if it exists and if LANGUAGE_RTL is defined, similarly to the behavior in theme-mode.
2. Created ckeditor-rtl.css: which handles RTL indentation (margin-right), but retains the margin-left behavior when using embedded LTR mode inside an RTL document.
The fix is made against v6.x-1.2. For some weird reason, a change from 5 weeks ago removed existing RTL logic, I hope it was not deliberate (-500 lines):
http://drupalcode.org/viewvc/drupal/contributions/modules/ckeditor/ckedi...
Oren
| Comment | File | Size | Author |
|---|---|---|---|
| ckeditor-css-rtl.patch | 2.01 KB | Oren_Held |
Comments
Comment #1
dczepierga commentedReally thx for patch. Changes commited to CVS.
Please check the latest dev release and let me know if you notice any poblems with it. Remember to clear Drupal cache and browsers cache before testing.
Comment #4
Maya_SH commentedhi,
I am having a similar problem with ckeditor 7.x-1.13 (ckeditor 4.3.2). when i'm editing the text the rtl button works fine and i can mix english and arabic in the same text, but when i save the article the whole text gets LTR.
I have applied the patch for the "ckeditor-rtl.css" but the module file "ckeditor.module" doesn't contain the "function ckeditor_process_textarea($element)" at all.
any advice?
thanks.