有没有办法让它与webpack一起工作?
安装为:
npm install ckeditor --save-dev
包括
window.CKEDITOR_BASEPATH = '../../node_modules/ckeditor/ckeditor';
require('ckeditor')
获得
ckeditor:1 Uncaught SyntaxError: Unexpected token <
答案 0 :(得分:-1)
在index.html
中添加此内容 <script>
var CKEDITOR_BASEPATH = '/ckeditor/';
</script>