mditor icon indicating copy to clipboard operation
mditor copied to clipboard

不支持手机浏览器?

Open herbieliang opened this issue 8 years ago • 4 comments

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

herbieliang avatar Apr 10 '17 02:04 herbieliang

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

Houfeng avatar Apr 10 '17 02:04 Houfeng

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浏览器等里面不生效。

herbieliang avatar Apr 10 '17 02:04 herbieliang

@zachlhb

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

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

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

Houfeng avatar Apr 10 '17 05:04 Houfeng

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

herbieliang avatar Apr 10 '17 05:04 herbieliang