<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="UEditor.ascx.cs" Inherits="Topevery.OA.Web.UserControl.UEditor" %>
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<!-- 配置文件 -->
<script type="text/javascript" src="/xcoa/js/ueditor/ueditor.config.js"></script>
<!-- 编辑器源码文件 -->
<script type="text/javascript" src="/xcoa/js/ueditor/ueditor.all.min.js"></script>
<script type="text/javascript" src="/xcoa/js/ueditor/ueditor.js"></script>
</head>
<body>
<div>
<script id="editor" type="text/plain" style="height: 300px; width: 650px;"></script>
</div>
<!-- 加载编辑器的容器 -->
<script id="container" name="content" type="text/plain">
</script>
<script type="text/javascript">
//实例化编辑器
//建议使用工厂方法getEditor创建和引用编辑器实例,如果在某个闭包下引用该编辑器,直接调用UE.getEditor('editor')就能拿到相关的实例
var ue = UE.getEditor('editor');
ue.setDisabled = function () {
UE.getEditor('editor').setDisabled('fullscreen');
}
</script>
</body>
</html>