【问题标题】:how to disable writing without disabling the ckeditor toolbar?如何在不禁用ckeditor工具栏的情况下禁用写作?
【发布时间】:2020-11-07 22:34:03
【问题描述】:

我只需要禁用通过ckeditor编写,但还是可以通过工具栏编辑,比如加粗、链接等...

希望你能帮助我,谢谢。

【问题讨论】:

    标签: javascript ckeditor wysiwyg ckeditor5


    【解决方案1】:

    在Vue中,可以使用如下代码:

    editorConfig: {
        toolbar: [
            'heading', 
            '|', 
            'bold', 
            'italic', 
            'link', 
            'bulletedList',
            'numberedList', 
            'blockQuote'
        ],
    }
    

    【讨论】:

      猜你喜欢
      • 2020-09-28
      • 2012-11-16
      • 1970-01-01
      • 2019-02-12
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-05-04
      相关资源
      最近更新 更多