Content Language
contentLanguage
Argument | Type | Required | Default |
---|---|---|---|
lang | string |
This method allows you to define the language of the editor's content, enabling you to set the text direction (RTL or LTR) based on your requirements.
By utilizing the contentLanguage
method, you can specify the language for the content within the CKEditor field. The method accepts an argument called lang
, which allows you to set the desired language code.
In this example, the contentLanguage
method is used to set the content language of the CKEditor field to Farsi (fa
). This ensures that the text direction is appropriate for Farsi content, which typically follows a right-to-left (RTL) orientation.
Last updated