поля:
$theme = isset($this->fields[$fieldId]['theme']) ? $this->fields[$fieldId]['theme'] : '';
if ($theme) {
if (in_array($which_editor, array('TinyMCE4', 'CKEditor4'))) {
$evtOut = $this->modx->invokeEvent('OnRichTextEditorInit', array(
'editor' => $which_editor,
'options' => array('theme' => $theme)
));
if (is_array($evtOut))
$evtOut = implode('', $evtOut);
};
}
Советую ознакомиться: DocLister
Обсуждают сегодня