如何使用 tinymce 去除 Android 中的灰色覆盖
how to remove the gray overlay in Android using tinymce
我使用 tinymce 作为 textarea
。我的代码看起来像这样
<textarea id="tinymce" class="tinymce form-control custom-control" name="message" placeholder="BERICHT"></textarea>
tinyMCE.init({
selector : ".tinymce",
plugins: "emoticons maxchars placeholder link",
menubar: false,
toolbar: 'undo redo | bold italic underline | fontsizeselect | link | emoticons',
selector : "textarea",
height: 300,
force_br_newlines : true,
force_p_newlines : false,
forced_root_block : '',
mobile: {
theme: 'mobile',
plugins: 'emoticons maxchars placeholder link',
toolbar: 'undo redo | bold italic underline | fontsizeselect | link | emoticons'
}
});
在移动设备上,我看到文本区域上有一个灰色覆盖层,如下图所示:
我怎样才能删除这个灰色覆盖层,使其看起来像这样:
据此:Is it possible to disable the mobile UI features in tinyMCE 5
您应该为移动设备使用不同的主题(银色):
mobile: {
theme: 'silver'
}
我使用 tinymce 作为 textarea
。我的代码看起来像这样
<textarea id="tinymce" class="tinymce form-control custom-control" name="message" placeholder="BERICHT"></textarea>
tinyMCE.init({
selector : ".tinymce",
plugins: "emoticons maxchars placeholder link",
menubar: false,
toolbar: 'undo redo | bold italic underline | fontsizeselect | link | emoticons',
selector : "textarea",
height: 300,
force_br_newlines : true,
force_p_newlines : false,
forced_root_block : '',
mobile: {
theme: 'mobile',
plugins: 'emoticons maxchars placeholder link',
toolbar: 'undo redo | bold italic underline | fontsizeselect | link | emoticons'
}
});
在移动设备上,我看到文本区域上有一个灰色覆盖层,如下图所示:
我怎样才能删除这个灰色覆盖层,使其看起来像这样:
据此:Is it possible to disable the mobile UI features in tinyMCE 5 您应该为移动设备使用不同的主题(银色):
mobile: {
theme: 'silver'
}