mirror of
https://github.com/codex-team/editor.js
synced 2026-03-16 15:45:47 +01:00
fix: lint issues in __module.ts
This commit is contained in:
parent
614cbc400c
commit
e3a67dcbd3
1 changed files with 3 additions and 1 deletions
|
|
@ -103,6 +103,8 @@ export default class Module<T extends ModuleNodes = Record<string, HTMLElement>>
|
|||
|
||||
this.config = config;
|
||||
this.eventsDispatcher = eventsDispatcher;
|
||||
// Editor is initialized via the state setter after construction
|
||||
this.Editor = {} as EditorModules;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -131,6 +133,6 @@ export default class Module<T extends ModuleNodes = Record<string, HTMLElement>>
|
|||
* Returns true if current direction is RTL (Right-To-Left)
|
||||
*/
|
||||
protected get isRtl(): boolean {
|
||||
return this.config.i18n.direction === 'rtl';
|
||||
return this.config.i18n?.direction === 'rtl';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue