我加入NG2/CKEDITOR用CMD NPM安裝以及安裝 還有一個例子NG2-CKEditor的 https://www.npmjs.com/package/ng2-ckeditor 我也做了同樣的事情 ,我也添加了這個腳本在我的指數NG2-CKEditor的404(未找到)angular2
<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
但我擔心BEC澳洲英語,他們例子中提到:樣品(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]
感謝我得到
你有'system.config.js'嗎?如果是這樣,請發佈。 – rinukkusu
yeesss我有我的system.config.js –
您必須從node_modules導入'ckeditor',並且必須將其映射到'systemjs.config.js'中。 – micronyks