Re: Adding RTL-LTR buttons to HTML Editor

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>> Indeed, these are my settings, but I don't want to be limited to a single
>> language or direction, but to have the option to have
>> both, depending on my correspondent.
>>
>> I saw in htmlarea.js file that the toolbar is supposed to include these
>> buttons, but that lower in the file, there's no
>> function line for then.

The HTMLArea editor is quite old and probably isn't what you want to
use.  However, its RTL button works fine for me.  Maybe you are trying
to edit the configuration for an editor you aren't using.

>From what I can tell, FCKEditor doesn't have RTL/LTR buttons by
default.  Please point them out if you have found them.  It looks like
you have to edit fckeditor/fckconfig.js and change
FCKConfig.ContentLangDirection.  It may be possible to add some code
to auto-switch depending on the language in use.

An easier solution might be to create a couple entries for the Style
button - you can add your own RTL and LTR styles to it by editing
fckeditor/fckstyles.xml.  If you do, please share with the community.

Even CKEditor doesn't appear to have any solution for this.  Looks
like, again, you have to edit ckeditor/config.js and set
config.contentsLangDirection

>> Also, my actual toolbar icons and their order do not match the settings in
>> that file, so I suspect that the actual toolbar used
>> is customized elsewhere, but I couldn't find how and where.
>>
> As I understand it fckeditor has been deprecated in favor of ckeditor.
>
> I've looked into rewriting the html_mail plugin with support for ckeditor
> but it's a bit past my technical level with php.

I've integrated that into a test version a while back.  It still
doesn't have any RTL buttons.

> There's a bounty to add the TinyMCE editor to HTML Mail plugin.
>
> All we need to do is come up with the $1000.00 required.
>
> See http://squirrelmail.org/donations.php#smbounty.
>
> I couldn't come up with the full amount but I'm willing to kick in $100.00
> to the pool.
>
> You might want to setup a kickstarter campaign to get some of these bounties
> taken care of.  I would be glad to contribute.

Partial amounts are welcome.  The suggested amount in this case
probably isn't necessary, although I have yet to look at TinyMCE to
see how hard this job would be.  Thanks for your interest/support.

>> If you are using the html_mail plugin and are using the fckeditor, look
>> for these options in the plugins/html_mail/fckeditor/fckconfig.js file.
>>
>> FCKConfig.AutoDetectLanguage    = true ;
>> FCKConfig.DefaultLanguage               = 'en' ;
>> FCKConfig.ContentLangDirection  = 'ltr' ;
>>
>> They won't add a button for ltr to rtl functionality but you can change
>> the default direction and the default language.
>>
>> Ted Hatfield
>>
>>
>>
>> On Tue, 22 Oct 2013, David wrote:
>>
>> > Hello,
>> >
>> > I would like to be able to write in Right-To-Left direction HTML based
>> > messages, but the RTL & LTR buttons are not available
>> by
>> > default.
>> >
>> > As I know from other web based editors, usually, in HTML editors like
>> > TinyMCE and similar, these buttons can be added by
>> changing the
>> > list of options of the editor. Is that the case here and if yes,
>> > where/how do I do that?

-- 
Paul Lesniewski
SquirrelMail Team
Please support Open Source Software by donating to SquirrelMail!
http://squirrelmail.org/donate_paul_lesniewski.php

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk
-----
squirrelmail-users mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: squirrelmail-users@xxxxxxxxxxxxxxxxxxxxx
List archives: http://news.gmane.org/gmane.mail.squirrelmail.user
List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-users




[Index of Archives]     [Video For Linux]     [Yosemite News]     [Yosemite Photos]     [gtk]     [KDE]     [Cyrus SASL]     [Gimp on Windows]     [Steve's Art]     [Webcams]

  Powered by Linux