fix: lint issues in __module.ts

This commit is contained in:
JackUait 2025-11-08 01:52:34 +03:00
commit e3a67dcbd3

View file

@ -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';
}
}