asp.net中kinkeditor配置

來源:互聯網
上載者:User

標籤:style   blog   http   color   io   java   ar   for   檔案   

<html xmlns="http://www.w3.org/1999/xhtml"><head>    <title>KindEditor</title>    <link rel="stylesheet" href="./js/kindeditor/themes/default/default.css" />    <script src="js/jquery-1.11.1.min.js" type="text/javascript"></script>    <script charset="utf-8" src="./js/kindeditor/kindeditor.js"></script>    <script charset="utf-8" src="./js/kindeditor/lang/zh_CN.js"></script>    <script>        KindEditor.ready(function (K) {            var editor = K.create('#editor_id', {                //上傳管理 可自行在對應的檔案按需求修改                uploadJson: './js/kindeditor/asp.net/upload_json.ashx',                //檔案管理                fileManagerJson: './js/kindeditor/asp.net/file_manager_json.ashx',                allowFileManager: true,                //設定編輯器建立後執行的回呼函數                afterCreate: function () {                    var self = this;                    K.ctrl(document, 13, function () {                        self.sync();                        K('form[name=example]')[0].submit();                    });                    K.ctrl(self.edit.doc, 13, function () {                        self.sync();                        K('form[name=example]')[0].submit();                    });                },                //上傳檔案後執行的回呼函數,擷取上傳圖片的路徑                afterUpload: function (url) {                    alert(url);                },                items:                [                        'source', '|', 'undo', 'redo', '|', 'preview', 'print', 'template', 'code', 'cut', 'copy', 'paste',                        'plainpaste', 'wordpaste', '|', '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', 'multiimage',                        'flash', 'media', 'insertfile', 'table', 'hr', 'emoticons', 'baidumap', 'pagebreak',                        'anchor', 'link', 'unlink', '|', 'about'                ]            });        });    </script></head><body>    <div>    <textarea id="editor_id" name="editor_id" style="width:700px;height:300px;">    </textarea>    </div></body></html>

asp.net中kinkeditor配置

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.