+ const commonEventData = {
+ usage: usageType,
+ editorViewConfig: config,
+ libEditorView: EditorView,
+ libEditorState: EditorState,
+ libCompartment: Compartment,
+ };
+
+ // Emit a pre-init public event so the user can tweak the config before instance creation
+ window.$events.emitPublic(config.parent, 'library-cm6::pre-init', commonEventData);