1 Star 0 Fork 0

泽优软件/wordpaster-asp.net-umeditor1x

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
index.aspx 3.19 KB
一键复制 编辑 原始数据 按行查看 历史
xfl 提交于 2个月前 . 新增事件
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="index.aspx.cs" Inherits="UMEditor.index" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>编辑器完整版实例-1.2.6.0</title>
<link href="umeditor/themes/default/css/umeditor.min.css" type="text/css" rel="stylesheet"/>
<script type="text/javascript" src="umeditor/third-party/jquery.min.js" charset="utf-8"></script>
<script type="text/javascript" src="umeditor/umeditor.config.js" ></script>
<script type="text/javascript" src="umeditor/umeditor.min.js" ></script>
<link type="text/css" rel="Stylesheet" href="demo.css" />
<link type="text/css" rel="Stylesheet" href="WordPaster/js/skygqbox.css" />
<script type="text/javascript" src="WordPaster/js/json2.min.js" charset="utf-8"></script>
<script type="text/javascript" src="WordPaster/js/skygqbox.js" charset="utf-8"></script>
<script type="text/javascript" src="WordPaster/js/w.js" charset="utf-8"></script>
<script type="text/javascript" src="zyCapture/z.js" charset="utf-8"></script>
<script type="text/javascript" src="zyOffice/js/o.js" charset="utf-8"></script>
<script type="text/javascript" src="demo.js" charset="utf-8"></script>
</head>
<body>
<div id="demos"></div>
<div style="width:800px;margin:20px auto 40px;">
<script type="text/plain" id="editor" style="width:100%;height:360px;"></script>
</div>
<script type="text/javascript">
var pos = window.location.href.lastIndexOf("/");
var api = [
window.location.href.substr(0, pos + 1),
"upload.aspx"
].join("");
WordPaster.getInstance({
//上传接口:http://www.ncmem.com/doc/view.aspx?id=d88b60a2b0204af1ba62fa66288203ed
PostUrl: api,
//为图片地址增加域名:http://www.ncmem.com/doc/view.aspx?id=704cd302ebd346b486adf39cf4553936
ImageUrl: "",
//设置文件字段名称:http://www.ncmem.com/doc/view.aspx?id=c3ad06c2ae31454cb418ceb2b8da7c45
FileFieldName: "file",
//提取图片地址:http://www.ncmem.com/doc/view.aspx?id=07e3f323d22d4571ad213441ab8530d1
ImageMatch: '',
Cookie: 'ASP.NET_SessionId=<%=Session.SessionID%>',
event:{
dataReady:function(e){
//e.word,
//e.imgs:tag1,tag2,tag3
console.log(e.imgs)
}
}
});//加载控件
//zyCapture
zyCapture.getInstance({
config: {
PostUrl: api,
FileFieldName: "file",
Fields: { uname: "test" }
}
});
//zyoffice,
//使用前请在服务端部署zyoffice,
//http://www.ncmem.com/doc/view.aspx?id=82170058de824b5c86e2e666e5be319c
zyOffice.getInstance({
word:"http://localhost:13710/zyoffice/word/convert",
wordExport:"http://localhost:13710/zyoffice/word/export",
pdf:"http://localhost:13710/zyoffice/pdf/upload"
});
UM.getEditor('editor');
</script>
</body>
</html>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/xproer/wordpaster-asp.net-umeditor1x.git
git@gitee.com:xproer/wordpaster-asp.net-umeditor1x.git
xproer
wordpaster-asp.net-umeditor1x
wordpaster-asp.net-umeditor1x
master

搜索帮助