洗洗脚泡泡澡 2016-07-07 01:35 采纳率: 40.9%
浏览 1070

文本编辑器KindEditor有人用过吗?

 <textarea id="inputtext" name="content" class="inputbox"
                style="width: 100%; height: 106px;"></textarea>

这个是文本域

    KindEditor.ready(function(K) {
        editor = K.create("#inputtext", {
            uploadJson : './kindeditor/jsp/upload_json.jsp',
            fileManagerJson : './kindeditor/jsp/file_manager_json.jsp',
            allowFileManager : true, //默认false 
            allowImageUpload : true,
            autoHeightMode : true, //默认值: false  
            afterCreate : function() {
                this.loadPlugin('autoheight');
                var __doc = this.edit.doc;
                $(__doc).bind('paste', null, function() { //右键粘贴, 包括 ctrl+v  
                    setTimeout(dealdoc(editor), 100);
                });
                $(__doc).bind("keydown", function(event) {
                    if (event.keyCode == 13) {
                        sendMessageNew();
                    }
                });
            },
            afterChange : function() {
                $('.word_count').html(this.count()); //(字数统计包含HTML代码。)  
            },
            afterBlur : function() {
                this.sync();
            }
        });
        $(".ke-toolbar").hide();
        $(".ke-edit-iframe").css("height", "106px");

    });

这个创建得不太对啊,firebug显示的是上面的textarea文本域原封不动,而创建的是一个iframe嵌入页面,请问是哪里参数可能有错误吗?

  • 写回答

1条回答 默认 最新

  • gamedev˚ 2016-07-07 10:37
    关注
    评论

报告相同问题?

悬赏问题

  • ¥15 素材场景中光线烘焙后灯光失效
  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 保护模式-系统加载-段寄存器