<?php
/*
 * Plugin Hook: editor_fast
 * Plugin Name: kindeditor编辑器
 * Author: 系统自带插件
 * Version: 1.0
 * Plugin URI: about:blank
 * Description: KindeditorFast编辑器,Kindeditor精简版。
 */
if(!defined('IN_MICECMS')){header("HTTP/1.0 404 Not Found");die();}
function KindeditorFast($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/KindeditorFast/';

	return $upload.'<script charset="utf-8" src="'.$dir.'kindeditor.js"></script><script>KE.show({id : "MCEname",newlineTag : "p",resizeMode : 1,allowPreviewEmoticons : false,allowUpload : false,items : ["fontname", "fontsize", "|", "textcolor", "bgcolor", "bold", "italic", "underline","removeformat", "|", "justifyleft", "justifycenter", "justifyright", "insertorderedlist","insertunorderedlist", "|", "emoticons", "image", "link"]});</script><textarea id="MCEname" name="MCEname" rows="10" cols="60" style="width:350px;height:200px;">MCEcontent</textarea>';
}
?>