【问题标题】:How to show Ckeditor View on the user side without toolbar如何在没有工具栏的用户端显示 Ckeditor 视图
【发布时间】:2020-06-10 16:00:50
【问题描述】:

我无法在视图页面上显示 CKEditor 编辑的内容。

我尝试将其设置为禁用,但这仍然显示带有禁用插件的工具栏。 我想将没有工具栏的内容显示为文章。

提前致谢

【问题讨论】:

    标签: angular ckeditor ckeditor5


    【解决方案1】:

    只需编辑放置源文件的目录中的 config.js 文件即可指定自定义工具栏。

    CKEDITOR.editorConfig = function( config )
    {
       config.toolbar = 'Custom'; //makes all editors use this toolbar
       config.toolbar_Custom = []; //define an empty array or whatever buttons you want.
    };
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2022-12-06
      • 2017-12-01
      • 2015-07-22
      • 2022-01-10
      • 1970-01-01
      • 1970-01-01
      • 2013-10-24
      相关资源
      最近更新 更多