Houfeng / mditor

📝 [ M ] arkdown + E [ ditor ] = Mditor
http://mditor.com/
533 stars 79 forks source link

不支持手机浏览器? #29

Open herbieliang opened 7 years ago

herbieliang commented 7 years ago

在手机浏览器里,配置不起作用,比如隐藏工具栏的按钮

Houfeng commented 7 years ago

@zachlhb 如何隐藏的?能否贴出来部分代码?

herbieliang commented 7 years ago
var comment_editor;

// 初始化评论编辑器
comment_editor =  Mditor.fromTextarea(document.getElementById('message'));
comment_editor.on('ready', function(){
    comment_editor.height = '200px';

    //是否打开分屏            
    comment_editor.split = false;

    //是否打开预览            
    comment_editor.preivew = false;

    //是否全屏
    comment_editor.fullscreen = false;

    comment_editor.toolbar.removeItem('underline');
    comment_editor.toolbar.removeItem('strikethrough');
    comment_editor.toolbar.removeItem('list-ol');
    comment_editor.toolbar.removeItem('list-ul');
    comment_editor.toolbar.removeItem('line');
    comment_editor.toolbar.removeItem('table');
    comment_editor.toolbar.removeItem('help');
    comment_editor.toolbar.removeItem('togglePreview');
    comment_editor.toolbar.removeItem('toggleSplit');
    comment_editor.toolbar.removeItem('toggleFullScreen');
});

在pc浏览器上on函数里的代码有效果,但在移动浏览器上,比如UC,QQ浏览器等里面不生效。

Houfeng commented 7 years ago

@zachlhb

有可能是兼容问题,能否提供如下信息:

  1. 系统版本
  2. QQ/UC 浏览器版本

如果有任何异常信息,也请提供

herbieliang commented 7 years ago

系统是安卓6.0,华为EMUI4.0.1 UC浏览器版本:V11.4.8.938