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

Method unselectBlock

src/components/modules/blockSelection.ts:364–368  ·  view source on GitHub ↗

* Remove selection from passed Block * * @param {Block} block - Block to unselect

(block: Block)

Source from the content-addressed store, hash-verified

362 * @param {Block} block - Block to unselect
363 */
364 public unselectBlock(block: Block): void {
365 block.selected = false;
366
367 this.clearCache();
368 }
369
370 /**
371 * Clear anyBlockSelected cache

Callers 1

BlockSettingsClass · 0.80

Calls 1

clearCacheMethod · 0.95

Tested by

no test coverage detected