xdan / jodit

Jodit - Best WYSIWYG Editor for You
https://xdsoft.net/jodit/
MIT License
1.68k stars 351 forks source link

ES2018 build does not expose Config module #1172

Closed niels-van-den-broeck closed 1 month ago

niels-van-den-broeck commented 2 months ago

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 2 months ago

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.