CKEditor SDK

Creating Multilingual Content

CKEditor is well-suited for multilingual environment. Its UI is translated into over 60 languages and by default it is displayed in user's language. Additionally, it makes working with multilingual content very convenient by providing the ability to set the text direction as well as mark the language of selected text fragments.

Setting Text Direction

The optional BiDi (Text Direction) plugin (which by default is only available in the Full distribution package) makes it possible to assign the text direction to any block-level content (like a paragraph, header, table or list) by using the dedicated   and   buttons. Some editor features such as indenting will adapt to the text direction setting.

The default text direction in the editor is the same as the editor UI direction (in classic editor) or the editable element direction (in inline editor), but you can also explicitely set it to left-to-right or right-to-left with the config.contentsLangDirection option. The editor instance below, for example, has the default content direction set to RTL to accomodate its Hebrew and Arabic content.

Setting Text Part Language

The optional Language plugin, introduced in CKEditor 4.3, implements the WCAG 3.1.2 Language of Parts specification.

When it is enabled, the   button is automatically added to the toolbar. Once clicked, it opens the dedicated drop-down list that lets you assign one of the pre-configured languages to a text selection.

Related Features