分享

LigerUI中使用KindEditor

 aaie_ 2015-05-05

LigerUI中使用ligerForm创建表单
如: { display:"测试KindEditor",name:"DeptDesc", newline: true, labelWidth: 100, width: 700, space: 30, type:"textarea"}

使用
var options={
                uploadJson:"../handler/upload_json.ashx",
                fileManagerJson:"../handler/file_manager_json.ashx",
                allowFileManager: true,
                afterBlur: function(){this.sync(); },
                afterCreate: function(){this.sync();}
              }
             
              //$("#DeptKineEdit").val("dddddd");
              $.ajax({
                        url:"/kindeditor/kindeditor-min.js",
                        dataType:"script",
                        cache: true,
                        success: function(){
                            KindEditor.basePath = '/kindeditor/';
                            editor= KindEditor.create('textarea[name="DeptDesc"]',options);
                        },error: function(msg){
                            alert(msg);
                        }
                    });

来加载KindEditor
获取或者设置值的时候, 用 $("#DeptDesc").val()

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多