MCPcopy
hub / github.com/GrapesJS/grapesjs / on

Method on

packages/core/src/editor/index.ts:727–730  ·  view source on GitHub ↗

* Attach event * @param {string} event Event name * @param {Function} callback Callback function * @return {this}

(event: E, callback: EditorEventHandler<E>)

Source from the content-addressed store, hash-verified

725 * @return {this}
726 */
727 on<E extends EditorEvent>(event: E, callback: EditorEventHandler<E>) {
728 this.em.on(event as string, callback);
729 return this;
730 }
731
732 /**
733 * Attach event and detach it after the first run

Callers 15

setupTestEditorFunction · 0.95
fixJsDomIframeFunction · 0.45
index.jsFile · 0.45
index.tsFile · 0.45
index.tsFile · 0.45
index.tsFile · 0.45
index.tsFile · 0.45
ParserCss.tsFile · 0.45
ParserHtml.tsFile · 0.45
index.tsFile · 0.45
index.tsFile · 0.45
AssetImageView.tsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected