首页 > 移动平台 > 详细

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

时间:2017-03-12 20:11:02      阅读:431      评论:0      收藏:0      [点我收藏+]

在前端代码中加入

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

 

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

原文:http://www.cnblogs.com/wlbkphp/p/6538643.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!