ueditor編輯器
阿新 • • 發佈:2018-06-13
div bsp conf asc its 編輯器 html style top
將編輯器作為用戶控件 <ty_ctl:UEditor ID="UEditor_Content
<%@ 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>
" runat="server" />
ueditor編輯器