【问题标题】:Ckeditor with webpack do not work带有 webpack 的 ckeditor 不起作用
【发布时间】:2016-10-27 18:56:14
【问题描述】:

有没有办法让 ckeditor 与 webpack 一起工作?

安装为:

npm install ckeditor --save-dev

包含

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

得到

ckeditor:1 Uncaught SyntaxError: Unexpected token <

【问题讨论】:

    标签: npm ckeditor webpack


    【解决方案1】:

    在 index.html 中添加这个

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

    【讨论】:

      猜你喜欢
      • 2018-01-09
      • 1970-01-01
      • 2021-12-14
      • 1970-01-01
      • 1970-01-01
      • 2018-01-21
      • 2020-01-09
      • 2019-11-02
      • 2023-04-08
      相关资源
      最近更新 更多