【问题标题】:How to install CKEditor 4 plugin to angular如何将 CKEditor 4 插件安装到 Angular
【发布时间】:2020-04-30 00:53:21
【问题描述】:

我正在使用 Angular 8 框架和 CKeditor 来构建我的应用程序。

我已经安装了 Ckeditor angular 模块,它工作正常。

但是,它不显示字体颜色按钮。

根据web page,我需要同时安装颜色按钮和面板按钮插件才能使其工作。

很遗憾,我不知道如何安装这些插件。你能告诉我怎么做吗?

PS:这是我的“配置”变量:

this.config.toolbarGroups = [
              { name: 'document', groups: [ 'mode', 'document', 'doctools' ] },
              { name: 'clipboard', groups: [ 'clipboard', 'undo' ] },
              { name: 'editing', groups: [ 'find', 'selection', 'spellchecker', 'editing' ] },
              { name: 'forms', groups: [ 'forms' ] },
              { name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ] },
              { name: 'paragraph', groups: [ 'list', 'indent', 'blocks', 'align', 'bidi', 'paragraph' ] },
              { name: 'links', groups: [ 'links' ] },
              { name: 'insert', groups: [ 'insert' ] },
              { name: 'styles', groups: [ 'styles' ] },
              { name: 'colors', groups: [ 'colors' ] },
              { name: 'tools', groups: [ 'tools' ] },
              { name: 'others', groups: [ 'others' ] },
              { name: 'about', groups: [ 'about' ] }
            ];
            this.config.removeButtons = 'Forms,Anchor,Underline,Strike,Subscript,Superscript,Link,Unlink,Styles,About,HorizontalRule,Blockquote,Italic,SpecialChar,Format,Outdent,NumberedList,Indent,BulletedList,RemoveFormat,Bold,PasteFromWord';
            this.config.extraPlugins = 'colorbutton';

【问题讨论】:

    标签: angular ckeditor


    【解决方案1】:

    最简单的方法是:

    index.html介绍full.js

    <script src="https://cdn.ckeditor.com/4.15.0/full-all/ckeditor.js"></script>
    

    please look this page

    【讨论】:

      猜你喜欢
      • 2016-04-05
      • 2020-03-31
      • 1970-01-01
      • 2020-02-17
      • 2019-07-31
      • 2015-01-19
      • 1970-01-01
      • 2018-08-03
      • 2016-07-27
      相关资源
      最近更新 更多