Adding plugins to CkEditor Document with Metronic 5
How could I customise CkEditor Document to add additional plugins such as Mention as this can only be done before being built. I've also noticed a "ckeditor-document.bundle.js:6 filerepository-no-upload-adapter" when attempting to set up image uploads which makes me wonder if this also needs to be configured.
Replies (2)
Hi,
Thanks for choosing Metronic.
You can use Online Builder for a custom build with required plugins and in the gulp or webpack config you can exclude the default build and include your custom build from the local plugins folder: core/html/src/plugins
May I know which build method you are using? Gulp or Webpack ?
For example for the gulp method the CKEditor config you can check in the config node ckeditorclassic in tools/gulp.config.js and modify it as shown below:
ckeditorclassic: {
src: {
scripts: [
"{$config.path.common_src}/plugins/ckeditor5-build-classic/build/ckeditor.js"
]
},
dist: {
scripts: "{$config.dist}/plugins/custom/ckeditor/ckeditor-classic.bundle.js"
}
}, For the webpack method you can refer to this post
Regards.