示例#1
0
文件: Wiki.php 项目: techart/tao
 protected function get_editor($name, $data)
 {
     if (isset($data['redactor'])) {
         return CMS_Redactor::get_editor($data['redactor']);
     }
     $main = CMS_Redactor::get_editor($this->default_editor);
     return $main->is_installed() ? $main : CMS_Redactor::get_editor($this->fallback_editor);
 }
示例#2
0
文件: ImageList.php 项目: techart/tao
 protected function get_editor($name, $data)
 {
     return isset($data['redactor']) ? CMS_Redactor::get_editor($data['redactor']) : CMS_Redactor::get_default();
 }