Constructor of EditArea initializes class variables
EditArea(string $sId, string $sSyntax, string $sLang, boolean $bAddScript, array $aCfg, boolean $bEditable)
Parameters
$sId
string
- The id of textarea which is replaced by editor
$sSyntax
string
- Name of syntax highlighting which is used (html, css, js, php, ...)
$sLang
string
- lang which is used into editor. Notice NOT Contenido language id ex: de, en ... To get it from contenido language use: substr(strtolower($belang), 0, 2) in backend
$bAddScript
boolean
- defines if edit_area script is included or not interesting when there is more than only one editor on page
$aCfg
array
- The contenido configuration array
$bEditable
boolean
- Optional defines if content is editable or not