Skip to content

Commit

Permalink
Fix i18n default configuration (#1290)
Browse files Browse the repository at this point in the history
* Fix i18n default configuration

* update bundle
  • Loading branch information
khaydarov committed Aug 28, 2020
1 parent f513fdd commit 0929abc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion dist/editor.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/components/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ export default class Core {

this.config.hideToolbar = this.config.hideToolbar ? this.config.hideToolbar : false;
this.config.tools = this.config.tools || {};
this.config.i18n = this.config.i18n || {};
this.config.data = this.config.data || {} as OutputData;
// eslint-disable-next-line @typescript-eslint/no-empty-function
this.config.onReady = this.config.onReady || ((): void => {});
Expand Down

0 comments on commit 0929abc

Please sign in to comment.