<?php
/*
 * Plugin Hook: editor
 * Plugin Name: Kindeditor编辑器
 * Author: 系统自带插件
 * Version: 1.0
 * Plugin URI: about:blank
 * Description: Kindeditor编辑器,一个功能强大的国产编辑器。
 */
if(!defined('IN_MICECMS')){header("HTTP/1.0 404 Not Found");die();}
function Kindeditor($isupload)
{
	$upload='';
	if($isupload==1){
		$upload='<a href="'.MICE_URL.'admin.php/index#5_47" target="_blank"><img src="'.MICE_URL.MICE_TPL.'/admin/imgs/medias.gif" border="0"></a>';
	}
	$dir=MICE_URL.'plugins/Kindeditor/';

	return $upload.'<link rel="stylesheet" href="'.$dir.'skins/index.css"/><script charset="utf-8" src="'.$dir.'kindeditor.js"></script><script>KE.show({id : "MCEname",newlineTag:"br",resizeMode:1,imageUploadJson : "'.$dir.'php/upload_json.php",fileManagerJson : "'.$dir.'php/file_manager_json.php",allowFileManager : true});</script><textarea id="MCEname" name="MCEname" cols="100" rows="8" style="width:100%;height:360px;visibility:hidden;">MCEcontent</textarea>';
}
?>