public function getVisualEditor()
{
if ($this->visualEditor === null) {
$yupe = Yii::app()->getModule('yupe');
$editor = $this->editor ?: $yupe->editor;
$this->visualEditor = isset($this->visualEditors[$editor]['class']) ? $this->visualEditors[$editor]['class'] : $yupe->visualEditors[$editor]['class'];
}
return $this->visualEditor;
}