我使用 cmd npm install ng2-ckeditor 添加了 ng2/CKEDitor
安装得很好
有一个例子https://www.npmjs.com/package/ng2-ckeditor https://www.npmjs.com/package/ng2-ckeditor我也做了同样的事情
我还在我的索引中添加了这个脚本
<script src="https://cdn.ckeditor.com/4.5.8/standard/ckeditor.js"></script>
我在哪里调用视图我在哪里放置<ckedito></ckeditor>
我收到这个错误
zone.js:101 GET http://localhost:9000/ng2-ckeditor 404 (Not Found)
Error loading http://localhost:9000/ng2-ckeditor as "ng2-ckeditor" from http://localhost:9000/dist/app.component.js
但我担心,因为他们在示例中提到:Sample(ES6)
在我的 tsconfig 中我有 es5
{
"compilerOptions": {
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"target": "es5",
"module": "system",
"moduleResolution": "node",
"removeComments": true,
"sourceMap": true
},
"exclude": [
"node_modules",
"typings/main.d.ts",
"typings/main"
]
}
当我添加这个时我收到错误directives: [ CKEditor]
thanks