<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Ueditor.ascx.cs" Inherits="Mvcb2b.admin.Ueditor" %>
<script type="text/javascript">
    var editorpath = "<%=Webd%>editors/";
</script>
<script  id="txtContent" name="txtContent" type="text/plain"><%=Text%></script>
<asp:HiddenField ID="editorname"  runat="server" Value="txtContent" />
<script type="text/javascript" src="<%=Webd%>editors/ueditor/ueditor.config.js"></script>
<script type="text/javascript" src="<%=Webd%>editors/ueditor/ueditor.all.js"></script>
 <script type="text/javascript" charset="gbk" src="<%=Webd%>editors/ueditor/lang/zh-cn/zh-cn.js"></script>
<script type="text/javascript" src="Comja/up.js"></script>
<script type="text/javascript">
    //实例化编辑器
    var ue = UE.getEditor('txtContent');
    ue.addListener('ready', function () {
        this.focus();
    });
    //实现插件的功能代码
    baidu.editor.commands['mybutton'] = { execCommand: function () {
        //开始上传对话框	
        var upfile = "<%=Upfile%>";
        upfilebox(upfile); 
        return true;
     }, queryCommandState: function () { } };
    function getUeContent() {
        return ue.getContent();
    }
    //插入内容
    function InsertContent(content) {
        ue.execCommand('insertHtml', content);
    }
</script>
