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

Function isBlockConvertable

src/components/utils/blocks.ts:17–19  ·  view source on GitHub ↗
(block: Block, direction: 'export' | 'import')

Source from the content-addressed store, hash-verified

15 * @param direction - export for block to merge from, import for block to merge to
16 */
17export function isBlockConvertable(block: Block, direction: 'export' | 'import'): boolean {
18 return isToolConvertable(block.tool, direction);
19}
20
21/**
22 * Checks that all the properties of the first block data exist in second block data with the same values.

Callers 2

mergeBlocksMethod · 0.90
areBlocksMergeableFunction · 0.85

Calls 1

isToolConvertableFunction · 0.90

Tested by

no test coverage detected