精品伊人久久大香线蕉,开心久久婷婷综合中文字幕,杏田冲梨,人妻无码aⅴ不卡中文字幕

打開APP
userphoto
未登錄

開通VIP,暢享免費電子書等14項超值服

開通VIP
extjs [文本編輯器:Editor]

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "<html xmlns="<head>
    <title></title>
    <!--ExtJs框架開始-->
    <script type="text/javascript" src="/Ext/adapter/ext/ext-base.js"></script>
    <script type="text/javascript" src="/Ext/ext-all.js"></script>
    <script src="/Ext/src/locale/ext-lang-zh_CN.js" type="text/javascript"></script>
    <link rel="stylesheet" type="text/css" href="/Ext/resources/css/ext-all.css" />
    <!--ExtJs框架結(jié)束-->
    <!--添加KeEditor的引用開始-->
    <script src="/kindeditor/kindeditor.js" type="text/javascript"></script>
    <!--添加KeEditor的引用結(jié)束-->
    <script type="text/javascript">
        Ext.onReady(function () {
            //初始化標(biāo)簽中的Ext:Qtip屬性。
            Ext.QuickTips.init();
            Ext.form.Field.prototype.msgTarget = 'side';

            //創(chuàng)建文本上傳域
            var exteditor = new Ext.form.HtmlEditor({
                fieldLabel: '員工描述'
            });
            //整合KE編輯器
            var keeditor = new Ext.form.TextArea({
                id: 'keeditor',
                fieldLabel: '員工描述',
                width: 700,
                height: 200
            });

            //表單
            var form = new Ext.form.FormPanel({
                frame: true,
                title: '表單標(biāo)題',
                style: 'margin:10px',
                items: [exteditor, keeditor],
                listeners: {
                    'render': function () {
                        KE.show({
                            id: 'keeditor',
                            imageUploadJson: '/App_Ashx/Upload.ashx'
                        });
                        setTimeout("KE.create('keeditor');", 1000);
                    }
                }
            });
            //窗體
            var win = new Ext.Window({
                title: '窗口',
                width: 900,
                height: 700,
                resizable: true,
                modal: true,
                closable: true,
                maximizable: true,
                minimizable: true,
                buttonAlign: 'center',
                items: form
            });
            win.show();
        });
    </script>
</head>
<body>
    <!--
說明:
(1) var exteditor = new Ext.form.HtmlEditor():創(chuàng)建一個新的html編輯器。
(2) var keeditor = new Ext.form.TextArea():創(chuàng)建一個新的TextArea。
(3) listeners: {
                    'render': function () {
                        KE.show({
                            id: 'keeditor',
                            imageUploadJson: '/App_Ashx/Upload.ashx'
                        });
                        setTimeout("KE.create('keeditor');", 1000);
                    }
                }
    監(jiān)聽表單的 render 事件,創(chuàng)建 KE Editor.(2),(3)中的id 要統(tǒng)一,否則無法顯示。
    imageUploadJson: '/App_Ashx/Upload.ashx',keeditor上傳圖片的后臺執(zhí)行文件
-->
</body>
</html>

 

其中與service交互用上傳圖片的 一般處理程序文件,源碼如下:

本站僅提供存儲服務(wù),所有內(nèi)容均由用戶發(fā)布,如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請點擊舉報
打開APP,閱讀全文并永久保存 查看更多類似文章
猜你喜歡
類似文章
.Net在線編輯器:KindEditor及CkEditor配置說明
ashx跨域問題
extjs CheckboxSelectionModel 有選擇的顯示
ExtJS GridPanel分頁、添加、刪除、修改
ExtJS表單提交與加載全攻略
用Ajax提交數(shù)據(jù)到ashx處理數(shù)據(jù)
更多類似文章 >>
生活服務(wù)
分享 收藏 導(dǎo)長圖 關(guān)注 下載文章
綁定賬號成功
后續(xù)可登錄賬號暢享VIP特權(quán)!
如果VIP功能使用有故障,
可點擊這里聯(lián)系客服!

聯(lián)系客服

主站蜘蛛池模板: 贡山| 黑河市| 苗栗市| 伊宁县| 泸州市| 山阴县| 通许县| 吉隆县| 乌兰察布市| 宁河县| 康定县| 页游| 盐津县| 义乌市| 桑植县| 昌吉市| 新巴尔虎右旗| 龙海市| 武冈市| 隆回县| 汤阴县| 祁阳县| 澄江县| 永寿县| 呼图壁县| 保亭| 大宁县| 武强县| 抚宁县| 潞城市| 五台县| 西乡县| 天柱县| 阿坝| 黎平县| 武汉市| 昌邑市| 泰宁县| 邳州市| 杭锦后旗| 江华|