我将 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'
}
关于android - 如何使用 tinymce 去除 Android 中的灰色覆盖,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58674928/