【问题标题】:Remove titles on buttons and panels ckeditor删除按钮和面板上的标题 ckeditor
【发布时间】:2015-09-10 07:59:48
【问题描述】:

我对 django-ckeditor 有一些错误:所有按钮和面板上的标题

我找不到配置参数来禁用它。

django-ckeditor==5.0.1

配置:

CKEDITOR_UPLOAD_PATH = 'uploads/'
CKEDITOR_CONFIGS = {
    …
    'simple': {
        'toolbar': [
            ['Source'],
            ['Bold', 'Italic', 'Underline',],
        ],
        'height': 100,
        'width': '100%',
        'toolbarCanCollapse': False,
        'forcePasteAsPlainText': True,
        'autoParagraph':    False,
    },
    …
}

在模型中:

class TextPart(models.Model):

    text =       RichTextField(blank=True, null=True, verbose_name=u'Текст', config_name='simple')

【问题讨论】:

    标签: ckeditor django-ckeditor


    【解决方案1】:

    与 django-suit 冲突:

    这个css规则中的问题(suit/static/suit/css/suit.css)

    .form-horizontal .inline-related span{display:inline-block;}
    

    我正在覆盖西装韧皮模板

    模板/admin/base.html

      …
      <link rel="stylesheet" type="text/css" href="{% static 'suit_ck/css/suit.css' %}" media="all">
      …
    

    然后将suit.css复制到suit_ck/css/suit.css并删除bug-rule

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-03-10
      • 2014-06-25
      • 2017-06-02
      • 2020-07-16
      • 1970-01-01
      相关资源
      最近更新 更多