免费视频淫片aa毛片_日韩高清在线亚洲专区vr_日韩大片免费观看视频播放_亚洲欧美国产精品完整版

打開APP
userphoto
未登錄

開通VIP,暢享免費(fèi)電子書等14項(xiàng)超值服

開通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>
    <!--
說(shuō)明:
(1) var exteditor = new Ext.form.HtmlEditor():創(chuàng)建一個(gè)新的html編輯器。
(2) var keeditor = new Ext.form.TextArea():創(chuàng)建一個(gè)新的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)一,否則無(wú)法顯示。
    imageUploadJson: '/App_Ashx/Upload.ashx',keeditor上傳圖片的后臺(tái)執(zhí)行文件
-->
</body>
</html>

 

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

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

聯(lián)系客服