mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-07-30 04:23:11 +03:00
Lexical: Started adding editor shortcuts
This commit is contained in:
@ -7,7 +7,7 @@ export class EventManager {
|
||||
/**
|
||||
* Emit a custom event for any handlers to pick-up.
|
||||
*/
|
||||
emit(eventName: string, eventData: {}): void {
|
||||
emit(eventName: string, eventData: {} = {}): void {
|
||||
this.stack.push({name: eventName, data: eventData});
|
||||
|
||||
const listenersToRun = this.listeners[eventName] || [];
|
||||
|
Reference in New Issue
Block a user