【问题标题】:how to remove the gray overlay in Android using tinymce如何使用tinymce删除Android中的灰色覆盖
【发布时间】:2019-11-02 20:17:10
【问题描述】:

我使用 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'
    }                   
});

在移动设备上,我在 textarea 上看到一个灰色叠加层,如下图所示:

我怎样才能删除这个灰色覆盖,使它看起来像这样:

【问题讨论】:

    标签: android tinymce textarea


    【解决方案1】:

    据此:Is it possible to disable the mobile UI features in tinyMCE 5 您应该为移动设备使用不同的主题(银色):

    mobile: {
        theme: 'silver'
      }
    

    【讨论】:

      猜你喜欢
      • 2016-01-24
      • 2023-02-20
      • 2017-10-16
      • 2016-05-19
      • 2014-10-04
      • 2012-12-28
      • 1970-01-01
      • 1970-01-01
      • 2017-08-15
      相关资源
      最近更新 更多