editor.html 341 B

123456789101112
  1. {php}
  2. use think\View;
  3. $editor= strtolower($GLOBALS['config']['app']['editor']);
  4. $ue_old= ROOT_PATH . 'static/ueditor/' ;
  5. $ue_new= ROOT_PATH . 'static/editor/'. $editor ;
  6. if( (!file_exists($ue_new) && file_exists($ue_old)) || $editor=='' ){
  7. $editor = 'ueditor';
  8. }
  9. echo View::instance()->fetch('admin@extend/editor/'.$editor.'');
  10. {/php}