angular - 'CKEditor 4.x is missing (http ://ckeditor. com/)' 使用 ng2-ckeditor 时的警告,angular 4

标签 angular components

我将为我的 Angular 4 项目使用 ng2-ckeditor 插件。 我阅读了指南,其中有 systemjs 文件的配置。 但是我在我的 angular 4 cli 项目中找不到 systemjs。 所以我做了指南中提到的其他事情,除了 systemjs 配置。 最后的结果是简单的文本框和警告

'CKEditor 4.x is missing (http://ckeditor.com/)'

这些都是我做的。

1)    /*added this script to my component html file*/
<script src="https://cdn.ckeditor.com/4.5.11/full/ckeditor.js"></script>
2) 
npm install ng2-ckeditor
3) set appmodule
import { CKEditorModule } from 'ng2-ckeditor';

@NgModule({
  // ... 
  imports:      [
    CKEditorModule
  ],
  // ... 
})
export class AppModule { }

4) use component
      <ckeditor [(ngModel)]="content" debounce="500">
      <p>Hello <strong>world</strong></p>
      </ckeditor>

我想知道如何设置 systemjs 即使我在我的项目中找不到 systemjs 文件 无论如何没有设置这个? 最好的问候

最佳答案

在 index.html 中导入脚本

<script src="https://cdn.ckeditor.com/4.6.1/full/ckeditor.js"></script>

关于angular - 'CKEditor 4.x is missing (http ://ckeditor. com/)' 使用 ng2-ckeditor 时的警告,angular 4,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45266932/

相关文章:

angular - 未捕获错误 : Unexpected module 'RouterModule' declared by the module 'AppRoutingModule' . 请添加 @Pipe/@Directive/@Component 注解

angular - 在文件 :///without server 上本地运行 Angular 7 项目

java - 编写一个程序来标记无向图的连通分量

javascript - 编写全局函数以在 Angular 所有组件中使用

node.js - Bcrypt 3.0.1 无法在 Node v 8.12.0 上安装

angular - primeng turbotable 列自动调整大小与滚动

reactjs - 如何在 react-app 中重用自定义 Material-ui 按钮?

javascript - 重新加载组件的 React.JS 问题

node.js - 在 Angular 2 应用程序中从 Cloud Functions for Firebase 发送 mailgun 电子邮件

components - 在windsor中根据请求者上的参数名称注册组件