MCPcopy Index your code
hub / github.com/codex-team/editor.js / toolPrepareMethodFallback

Method toolPrepareMethodFallback

src/components/modules/tools.ts:256–258  ·  view source on GitHub ↗

* Tool prepare method fail callback * * @param {object} data - append tool to unavailable list

(data: { toolName: string })

Source from the content-addressed store, hash-verified

254 * @param {object} data - append tool to unavailable list
255 */
256 private toolPrepareMethodFallback(data: { toolName: string }): void {
257 this.toolsUnavailable.set(data.toolName, this.factory.get(data.toolName));
258 }
259
260 /**
261 * Binds prepare function of plugins with user or default config

Callers 1

prepareMethod · 0.95

Calls 2

getMethod · 0.65
setMethod · 0.45

Tested by

no test coverage detected