質問

ロードエディターにテキスト方向[RTL]を設定するにはどうすればよいですか。

この点で私をヘルパーにできるでしょう。

役に立ちましたか?

解決

ドキュメントによると、これはそれを行うはずです:

CKEDITOR.config.contentsLangDirection Cksourceマニュアルで

そこから取った例:

config.contentsLangDirection = 'rtl';

他のヒント

それを行う別の方法は、ビューファイルから直接、置き換え()を使用することの利点は、ビューごとに異なる方向とスタイルを使用できることです。

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

置き換え()を使用すると、タグを許可/許可したり、エディターからボタンを削除したりするなど、他のフィルタリングを実行することもできます。詳細な説明については、ご覧ください。

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

以下のように、ckeditor内のcontentslangdirection = "rtl"を変更するだけです

<CKEditor:CKEditorControl ID="CKEdMainPageDescriptionWebsiteMobileappAr" BasePath="ckeditor/" runat="server" Width="100%" Toolbar="Basic"  ContentsLangDirection="Rtl"
                                        ToolbarBasic="|Bold|Italic|Underline|Strike|-|NumberedList|BulletedList|Outdent|Indent|-|JustifyLeft|JustifyCenter|JustifyRight|JustifyBlock|
                                            |Styles|-|Format|-|Font|-|FontSize|
                                          /
                                        |Link|Unlink|-|TextColor|-|Undo|Redo|Cut|Copy|Paste|PasteText|PasteFromWord|"> </CKEditor:CKEditorControl>
ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top