2010-10-28 147 views
3

我添加了language:'ar',contentsLangDirection:'rtl',contentsLanguage:'ar'選項,我的CKEditor實例正在使用JQuery適配器進行初始化。但文字仍然保持一致。CKEditor RTL問題

它定義了<html>標籤與dir='rtl'lang='ar',但每個<p>標籤,它有一個內嵌text-align: left風格。

我該如何擺脫這種風格?

+0

的情況下,你不知道elrte是CKEDITOR選擇,我現在已經翻譯http://elrte.org/demo阿拉伯語,它應該幫助你:) – tawfekov 2010-11-01 11:17:12

回答

3

試試這個:

 <script type="text/javascript"> 
      CKEDITOR.config.contentsLangDirection='rtl'; 
      CKEDITOR.replace('editorX'); 
     </script>