Alex Rivera | Logout

text direction in CK Editor

Asked 2010-06-26T08:46:14.207
9

How can I set text direction [rtl] on load editor?

Edit
Report

1 Answer

12

Another way to do it is directly from your view file, the benefit of using replace() method is that you can use different direction and style for each of your view.

CKEDITOR.replace( 'article_area', {
    contentsLangDirection: 'rtl'
} );

By using replace() you can also do other filtering stuff like allowing/disallowing tags and removing buttons from the editor. for a detailed description visit:

http://ckeditor.com/ckeditor_4.1rc/samples/datafiltering.html

answered 2013-05-11T16:03:05.863

Your Answer