【问题标题】:Remove Arial and Helvetica fonts from Summernote从 Summernote 中删除 Arial 和 Helvetica 字体
【发布时间】:2019-05-08 07:48:51
【问题描述】:

我正在尝试仅使用 Roboto,但 Summernote 添加到此 Arial 和 Helvetica。有没有办法删除它们?

SUMMERNOTE_CONFIG = {
    'summernote': {

        # As an example, using Summernote Air-mode
        'airMode': False,

        # Change editor size
        'width': '100%',
        'height': '480',

        'fontNames': ['Roboto Light', 'Roboto Regular', 'Roboto Bold'],
        'fontNamesIgnoreCheck': ['Roboto Light', 'Roboto Regular', 'Roboto Bold'],

        'toolbar': [
            ['style', ['style']],
            ['fontname', ['fontname']],
            ['color', ['color']],
            ['para', ['ul', 'ol', 'paragraph']],
            ['height', ['height']],
            ['table', ['table']],
            ['insert', ['link', 'picture', 'hr']],
            ['view', ['fullscreen', 'codeview']],
            ['help', ['help']]
        ],

        'styleTags': ['p', 'h1', 'h2', 'h3', 'small'],


    },

}

我正在使用Django-Summernote

【问题讨论】:

    标签: javascript python html django summernote


    【解决方案1】:

    在您的 css 文件中设置您想要的字体系列。 (默认)。

    或者在html中添加。示例:

     <style>
        body {
            font-family: "Roboto Light"
        }
     </style>
    

    SUMMERNOTE_CONFIG 会起作用。

    【讨论】:

    • 这个css在哪里,具体是哪个文件?
    猜你喜欢
    • 2010-11-07
    • 1970-01-01
    • 2010-11-17
    • 2020-02-28
    • 2016-09-12
    • 1970-01-01
    • 2011-12-28
    • 2011-07-11
    • 1970-01-01
    相关资源
    最近更新 更多