yuesu/aspxadmin/controls/Ueditor.ascx
(完整代码) 1KB<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Ueditor.ascx.cs" Inherits="Mvcb2b.aspxadmin.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 () { }
};
<%if (Updownfile!=null){ %>
baidu.editor.commands['mybutton2'] = { execCommand: function () {
//开始上传对话框
var upfile = "<%=Updownfile%>";
upfilebox(upfile);
return true;
}, queryCommandState: function () { }
};
<%} %>
function getUeContent() {
return ue.getContent();
}
//插入内容
function InsertContent(content) {
ue.execCommand('insertHtml', content);
}
</script>
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
