D
D
dlyatorrenta12017-11-13 15:47:51
JavaScript
dlyatorrenta1, 2017-11-13 15:47:51

CKEditor - how to build via gulp with your plugins?

The project uses CKEditor 4. It took some functionality to be added to it and plugins were written.
All assets (JS, CSS, fonts, images) are collected and minified via gulp into one bundle, except for the folder with CKEditor files. It is simply copied and connected separately, because. it contains custom plugins that CKEditor picks up by default from the folder: *CKEditor folder*/plugins/pluginName/plugin.js .
Question : how to build on gulp so that all CKEditor files are pulled into a common bundle with JS and CSS and their plugins ? Even if not in general, then at least minify and collect the entire editor into one separate cke.bundle.js/css is it possible?
PS Wouldn't minification and assembly be a violation of the GPL, LGPL, MPL license under which CKeditor is distributed?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Karen Ananiev, 2017-11-13
@dlyatorrenta1

You need CKBuilder. It has its own config where you can add custom plugins to include in the build. It can be run from gulp with gulp-exec. Of course, you need Java.
We also ported CKBuilder to nodejs to get rid of Java dependency.
https://www.npmjs.com/package/node-ckbuilder
Plugin for gulp
https://www.npmjs.com/package/gulp-ckbuilder

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question