/**
 * 加载富文本编辑器
 * create time: 2011-7-10 下午12:41:52
 * @version $Id: js_editor.tpl 217 2012-11-19 14:48:41Z liqt $
 * @author LiQintao
 */

function load_xh_editor(textarea_id, height, width)
{
	return $("#"+textarea_id).xheditor({
		width: width,
		height: height,
		tools: 'Bold,Removeformat,|,Link,Unlink,Img,|,Fullscreen,Preview,Source',
		skin: 'default',
		linkTag: false,
		showBlocktag: false,
		internalScript: false,
		inlineScript: false,
		internalStyle: false,
		inlineStyle: false,
		forcePtag: true,
		cleanPaste: 2,
		upBtnText: "上传",
		upMultiple: 1,
		upImgUrl:"{<$xh_upload_url>}",
        upLinkUrl:"{<$xh_upload_url>}",// 可以在编辑链接的地方上传任意文件
		upImgExt:"jpg,jpeg,gif,png,bmp",
        upLinkExt: "*"
	});
}