1 Star 0 Fork 1

泽优软件/zyoffice-kindeditor4x

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
文件
Clone or Download
index-layer.html 2.57 KB
Copy Edit Raw Blame History
xfl authored 2024-11-19 17:10 . 优化加载逻辑
<!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" >
<!--此页面实现Word图片自动批量上传的功能-->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>zyOffice For KindEditor-4.x</title>
<link type="text/css" rel="Stylesheet" href="demo.css" />
<link type="text/css" rel="Stylesheet" href="zyoffice/css/w.css" />
<link type="text/css" rel="stylesheet" href="themes/simple/simple.css" />
<script type="text/javascript" charset="utf-8" src="kindeditor-min.js"></script>
<script type="text/javascript" charset="utf-8" src="lang/zh_CN.js"></script>
<script type="text/javascript" src="zyoffice/js/jquery-1.8.3.min.js" charset="utf-8"></script>
<script type="text/javascript" src="zyoffice/js/json2.min.js" charset="utf-8"></script>
<script type="text/javascript" src="zyoffice/js/layer-3.1.1/layer.js" charset="utf-8"></script>
<script type="text/javascript" src="zyoffice/js/w.layer.js" charset="utf-8"></script>
<script type="text/javascript" src="demo.js" charset="utf-8"></script>
</head>
<body>
<div id="demos"></div>
<!--KindEditor编辑器-->
<textarea id="content1" name="content1" style="width:720px;height:300px;visibility:hidden;"></textarea>
<script type="text/javascript">
zyOffice.getInstance({
word:"http://localhost:13710/zyoffice/word/convert",
wordExport:"http://localhost:13710/zyoffice/word/export",
pdf:"http://localhost:13710/zyoffice/pdf/upload"
});//加载控件
var editor;
KindEditor.ready(function(K)
{
editor = K.create('#content1'
,
{ items: [
'source', '|', 'undo', 'redo', '|', 'preview', 'print', 'template', 'cut', 'copy', 'paste',
'plainpaste', 'wordpaste', 'zyoffice', 'zywordexport', 'zyofficepdf', '|', 'justifyleft', 'justifycenter', 'justifyright',
'justifyfull', 'insertorderedlist', 'insertunorderedlist', 'indent', 'outdent', 'subscript',
'superscript', 'clearhtml', 'quickformat', 'selectall', '|', 'fullscreen', '/',
'formatblock', 'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold',
'italic', 'underline', 'strikethrough', 'lineheight', 'removeformat', '|', 'image',
'flash', 'media', 'insertfile', 'table', 'hr', 'emoticons', 'map', 'code', 'pagebreak',
'link', 'unlink', '|', 'about']
, afterCreate: function()
{
zyOffice.getInstance().SetEditor(this);
}
});
});
</script>
</body>
</html>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/xproer/zyoffice-kindeditor4x.git
git@gitee.com:xproer/zyoffice-kindeditor4x.git
xproer
zyoffice-kindeditor4x
zyoffice-kindeditor4x
master

Search