作者:飞扬8989_100 | 来源:互联网 | 2023-01-28 18:06
如何解决《使用ng2-ckeditor时,'CKEditor4.x缺少(http://ckeditor.com/)'警告,角度为4》经验,为你挑选了1个好方法。
我将为我的angular 4项目使用ng2-ckeditor插件.我读了指南,有systemjs文件的配置.但我在我的角度4 cli项目中找不到systemjs.所以除了systemjs config之外,我做了指南中提到的其他事情.最后的结果是简单的文本框和警告
'CKEditor 4.x is missing (http://ckeditor.com/)'
这些都是我所做的.
1) /*added this script to my component html file*/
2)
npm install ng2-ckeditor
3) set appmodule
import { CKEditorModule } from 'ng2-ckeditor';
@NgModule({
// ...
imports: [
CKEditorModule
],
// ...
})
export class AppModule { }
4) use component
Hello world
我想知道如何设置systemjs,即使我在我的项目中找不到systemjs文件而且无论如何都没有设置这个?最好的祝福
1> Rahul Singh..:
在index.html中导入脚本