You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
79 lines
2.6 KiB
Plaintext
79 lines
2.6 KiB
Plaintext
11 months ago
|
<!DOCTYPE html>
|
||
|
<html>
|
||
|
<head>
|
||
|
<meta charset="utf-8" />
|
||
|
<title></title>
|
||
|
<script type="text/javascript" src="../../Scripts/bootstrap/js/jquery.min.js"></script>
|
||
|
<script src="../../Scripts/QueryString.js" type="text/javascript"></script>
|
||
|
<link href="../../../DataUser/Style/ccbpm.css" rel="stylesheet" type="text/css" />
|
||
|
<!-- 引用通用的js文件. -->
|
||
|
<script type="text/javascript" src="../../Scripts/config.js"></script>
|
||
|
<script type="text/javascript" src="../../Comm/Gener.js"></script>
|
||
|
<!--UEditor-->
|
||
|
<link href="../../Comm/umeditor1.2.3-utf8/themes/default/css/umeditor.css" type="text/css" rel="stylesheet" />
|
||
|
<script type="text/javascript" src="../../Comm/umeditor1.2.3-utf8/third-party/template.min.js"></script>
|
||
|
<script type="text/javascript" charset="utf-8" src="../../Comm/umeditor1.2.3-utf8/umeditor.config.js"></script>
|
||
|
<script type="text/javascript" charset="utf-8" src="../../Comm/umeditor1.2.3-utf8/umeditor.js"></script>
|
||
|
<script type="text/javascript" src="../../Comm/umeditor1.2.3-utf8/lang/zh-cn/zh-cn.js"></script>
|
||
|
|
||
|
<style>
|
||
|
.body{
|
||
|
overflow-x:hidden;
|
||
|
}
|
||
|
</style>
|
||
|
<script type="text/javascript" language="javascript">
|
||
|
var editor = "";
|
||
|
//页面启动函数.
|
||
|
$(function () {
|
||
|
|
||
|
//初始化富文本编辑器
|
||
|
editor = UM.getEditor('container', {
|
||
|
'autoHeightEnabled': false,
|
||
|
'fontsize': [10, 12, 16, 18, 24, 36],
|
||
|
'initialFrameWidth': '98%',
|
||
|
'initialFrameHeight': '240',
|
||
|
});
|
||
|
|
||
|
var nodeID = GetQueryString("NodeID");
|
||
|
|
||
|
var en = new Entity("BP.WF.Template.NodeExt", nodeID);
|
||
|
var doc = en.DoMethodReturnString("ReadHelpAlert");
|
||
|
//初始化富文本框的内容
|
||
|
editor.setContent(doc);
|
||
|
|
||
|
});
|
||
|
function Save() {
|
||
|
|
||
|
var nodeID = GetQueryString("NodeID");
|
||
|
//获取富文本的内容
|
||
|
var html = editor.getContent();
|
||
|
if (html == "") {
|
||
|
alert("内容不能为空!");
|
||
|
return;
|
||
|
}
|
||
|
var en = new Entity("BP.WF.Template.NodeExt", nodeID);
|
||
|
//执行保存富文本的内容
|
||
|
var msg = en.DoMethodReturnString("SaveHelpAlert", html);
|
||
|
|
||
|
alert(msg);
|
||
|
Reload();
|
||
|
|
||
|
}
|
||
|
</script>
|
||
|
</head>
|
||
|
<body>
|
||
|
|
||
|
|
||
|
<div style='white-space:normal;margin:8px'>
|
||
|
<!-- 加载编辑器的容器 -->
|
||
|
<script id="container" name="content" type="text/plain">
|
||
|
|
||
|
</script>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
<input type="button" value="确定" onclick="Save();" />
|
||
|
|
||
|
|
||
|
</body>
|
||
|
</html>
|