ES2018 build does not expose Config module
niels-van-den-broeck opened this issue · 1 comments
niels-van-den-broeck commented
Jodit Version: 4.x
Browser: any
OS: Mac
Is React App: True
Code
// I would like to be able to do the following when using the es2018 build
Config.prototype.controls.fontsizeup = {
command: 'fontsizeup',
isDisabled: (editor, button) => true,
...
};
Expected behavior:
I expect to be able to import the Config module from jodit in order to extend it for custom plugins
Actual behavior:
Config does not seem to be included in the ES2018 build which jodit-react
uses.
niels-van-den-broeck commented
Pretty sure this would be achievable by adding the src/config
file in the entry in jodits webpack.config.js
. I'd be willing to make a PR if this is indeed expected.