`
wensiqun
  • 浏览: 68954 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

KindEditor的setHeight方法

阅读更多

KindEditor默认是没有setHeight()方法的。通过一下方式添加setHeight方法

KindEditor.EditorClass.prototype.setHeight = function(height){
        var self = this;
        var tbar = $(self.container.children()[0]);
        var statusbar = $(self.container.children()[2]);
        var editHei = height - tbar.height() - statusbar.height();
        var edit = $(self.container.children()[1]);
        var editTxtares = $(edit.children()[1]);
        if(editHei > 0){
            edit.height(editHei);
            editTxtares.height(editHei);
        }
    };


文章出自http://wensiqun.iteye.com/blog/1733607

分享到:
评论

相关推荐

    asp增加kindeditor删除图片功能

    Set objFSO = CreateObject("Scripting.FileSystemObject") If objFSO.FileExists(imagePath) Then objFSO.DeleteFile imagePath End If DeleteImage = "图片已删除" End Function ``` 这里的`DeleteImage`...

    JSP kindeditor编辑器使用,能上传图片,解决乱码问题

    request.setCharacterEncoding("UTF-8"); response.setContentType("text/html;charset=UTF-8"); ``` 同样,如果你的数据库连接也需要处理非ASCII字符,确保数据库连接也设置为UTF-8。 5. **注意Demo中的编码...

    NVKindEditor3.5.4面向对象版(修改)

    this.textarea.setHeight(this.height); this.textarea.dom.name = this.tid; this.textarea.dom.id = this.tid; this.textarea.dom.style.visibility = 'hidden'; this.textarea.dom.value = this.value; ...

    SpringMVC KindEditor在线编辑器之文件上传代码实例

    response.setCharacterEncoding("UTF-8"); response.setContentType("text/html;charset=UTF-8"); PrintWriter out = response.getWriter(); JSONObject jsonObject = new JSONObject(); // 文件上传处理 for ...

    bug反馈系统-php源码

    <script type="text/javascript" charset="utf-8" src="includes/editer/kindeditor.js"> KE.show({ id : 'bug', cssPath : './css/editer.css', items : [ 'undo', 'redo', 'fontname', 'fontsize', '...

Global site tag (gtag.js) - Google Analytics