MCPcopy
hub / github.com/codex-team/editor.js / composePasteEvent

Method composePasteEvent

src/components/modules/paste.ts:1000–1004  ·  view source on GitHub ↗

* Compose paste event with passed type and detail * * @param {string} type - event type * @param {PasteEventDetail} detail - event detail

(type: string, detail: PasteEventDetail)

Source from the content-addressed store, hash-verified

998 * @param {PasteEventDetail} detail - event detail
999 */
1000 private composePasteEvent(type: string, detail: PasteEventDetail): PasteEvent {
1001 return new CustomEvent(type, {
1002 detail,
1003 }) as PasteEvent;
1004 }
1005}
1006

Callers 4

processFileMethod · 0.95
processHTMLMethod · 0.95
processPlainMethod · 0.95
processPatternMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected