kindeditor 手机端使用方法 使用kindeditor 4.1.7

时间:2017-03-12 20:11:02   收藏:0   阅读:3507

在前端代码中加入

<link rel="stylesheet" href="/editors/themes/default/default.css" />    //地址按自己路径
        <script charset="utf-8" src="/editors/kindeditor.js"></script>   //地址按自己路径
        <script charset="utf-8" src="/editors/lang/zh_CN.js"></script>  //地址按自己路径
        <script>
            var editor;
            KindEditor.ready(function(K) {
                editor = K.create(‘textarea[name="content"]‘, {

                    resizeType : 1,
                    filterMode: true,
                    allowPreviewEmoticons : false,
                    allowImageUpload : false,
                    newlineTag : "p",
                    height : ‘200px‘,
                    width : ‘95%‘,        //宽度用百分比 否则容易错
                    items : [
                        ]    //这里面加入需要的控件
                });
            });
        </script>

在kindeditor.js文件中注释掉下面一段代码4760行左右 可搜索mobile

if (_MOBILE && (!_IOS || _V < 534)) {
        self.designMode = false;
    }

 

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!