{php} $editor=$GLOBALS['config']['app']['editor']; $ue_old= ROOT_PATH . 'static/ueditor/' ; $ue_new= ROOT_PATH . 'static/editor/'. $editor ; if( (!file_exists($ue_new) && file_exists($ue_old)) || $editor=='' ){ $editor = 'ueditor'; } {/php} {if condition="$editor eq 'ueditor'"} {elseif condition="$editor eq 'umeditor'"} {elseif condition="$editor eq 'kindeditor'"} {elseif condition="$editor eq 'ckeditor'"} {/if}