Availability: >= 3.0

Type: Object Property

Description: Default language of content in the editor.


$editor->htmlLang string $lang;

Sets the default language of content displayed in the editor. If you are editing a complete HTML document that specifies it's language using the lang attribute on the HTML tag then you do not need to use this property. This property is intended for when editing a snippet of HTML code where the language is unknown. 

The value is the same as for the lang attribute in HTML. 

This property may have no other effect than to set the default language in the WysiwygPro Spell checker, but in theory it should also aid the correct display and input of content in some browsers (unverified).

Example (Russian):

$editor->htmlLang 'RU';