[solution] Configuring RTL (right to left ) in fckeditor

Solutions for other advanced phplisters

[solution] Configuring RTL (right to left ) in fckeditor

Postby itamar » 2:38pm, Thu 06 Mar, 2008

Hi,
I want to use hebrew in fck editor and since there are no default buttons is not very convenient to use it.

After searching some configuration files in fckeditor I found that changing these lines:
Code: Select all
FCKConfig.AutoDetectLanguage  = true ;
FCKConfig.DefaultLanguage   = 'en' ;
FCKConfig.ContentLangDirection  = 'ltr' ;


TO:
Code: Select all
FCKConfig.AutoDetectLanguage  = false ;
FCKConfig.DefaultLanguage   = 'he' ;
FCKConfig.ContentLangDirection  = 'rtl' ;


in admin/fckphplist.php

did the trick fot me.

I hope it will help others too.
itamar
phpList newbie
 
Posts: 2
Joined: 2:33pm, Thu 06 Mar, 2008

Postby itamar » 8:16am, Tue 11 Mar, 2008

One more thing.
I found out that to make the emails sent be RTL too its best to make a template then go to its source and put a div tag around the template with an dir attribute that equals rtl.
This way you can be sure the mail will be received correctly.
itamar
phpList newbie
 
Posts: 2
Joined: 2:33pm, Thu 06 Mar, 2008

Postby Ducklet » 10:05pm, Tue 08 Jul, 2008

Cool. Thanks. :)
Ducklet
PL Nut
 
Posts: 15
Joined: 5:43pm, Fri 04 Jul, 2008

Re: [solution] Configuring RTL (right to left ) in fckeditor

Postby farstar » 10:59am, Mon 01 Feb, 2010

Hi

Just wanted to thank you. You saved my head from lots of banging to the wall :D
farstar
phpLister
 
Posts: 8
Joined: 12:12pm, Wed 25 Nov, 2009

Re: [solution] Configuring RTL (right to left ) in fckeditor

Postby freeall » 4:08pm, Mon 09 Jan, 2012

my problem was that the text itself inside the FCKeditor text window was LTR and not RTL even after applying the hacks above. I nedded to add to the admin/FCKeditor/editor/css/internal.css file the attribute 'direction:rtl' to the html element (the first element in the file)
now it's working.
freeall
phpLister
 
Posts: 7
Joined: 10:31am, Mon 09 Jan, 2012


Return to Advanced Answers, Howtos, Tips & Tricks

Who is online

Users browsing this forum: No registered users and 1 guest