Ckeditor with webpack不起作用



是否有办法得到工作与webpack ckeditor ?

安装:

npm install ckeditor --save-dev
包括

window.CKEDITOR_BASEPATH = '../../node_modules/ckeditor/ckeditor';
require('ckeditor')

获得

ckeditor:1 Uncaught SyntaxError: Unexpected token <

添加到index.html

  <script>
      var CKEDITOR_BASEPATH = '/ckeditor/';
  </script>

最新更新