MCPcopy
hub / github.com/nhn/tui.editor / exec

Method exec

apps/editor/src/commands/commandManager.ts:50–58  ·  view source on GitHub ↗
(name: string, payload?: Record<string, any>)

Source from the content-addressed store, hash-verified

48 }
49
50 exec(name: string, payload?: Record<string, any>) {
51 const type = this.getEditorType();
52
53 if (type === 'markdown') {
54 this.mdCommands[name](payload);
55 } else {
56 this.wwCommands[name](payload);
57 }
58 }
59}

Callers 15

initEventMethod · 0.95
addBackticksFunction · 0.45
flushCloseMethod · 0.45
progressMethod · 0.45
reorderListMethod · 0.45
outdentMethod · 0.45
textToOrderedFunction · 0.45
orderedFunction · 0.45
bulletFunction · 0.45
getReorderedListInfoFunction · 0.45
escapeTextForLinkFunction · 0.45
editor.spec.tsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected