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

在前端代码中加入

<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;
    }

 

文章来自:http://www.cnblogs.com/wlbkphp/p/6538643.html
© 2021 jiaocheng.bubufx.com  联系我们
ICP备案:鲁ICP备09046678号-3