Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

不支持手机浏览器? #29

Open
herbieliang opened this issue Apr 10, 2017 · 4 comments
Open

不支持手机浏览器? #29

herbieliang opened this issue Apr 10, 2017 · 4 comments

Comments

@herbieliang
Copy link

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

@Houfeng
Copy link
Owner

Houfeng commented Apr 10, 2017

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

@herbieliang
Copy link
Author

herbieliang commented Apr 10, 2017

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
Copy link
Owner

Houfeng commented Apr 10, 2017

@zachlhb

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

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

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

@herbieliang
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants