How to use CKEditor as an NPM module built with webpack or similar

后端 未结 5 2034
情歌与酒
情歌与酒 2020-12-30 01:26

How can I use CKEditor from npm with webpack?

Ideally I want npm install ckeditor --save then var CK = require(\'ckeditor\'); without any g

5条回答
  •  礼貌的吻别
    2020-12-30 01:51

    CKEditor was published on NPM.

    Now you can use exactly the commands you want.

    Install

    npm install ckeditor --save-dev
    

    Inject

    var CK = require('ckeditor');
    

提交回复
热议问题