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

Method unsetCurrentBlock

src/components/modules/blockManager.ts:883–885  ·  view source on GitHub ↗

* Sets current Block Index -1 which means unknown * and clear highlights

()

Source from the content-addressed store, hash-verified

881 * and clear highlights
882 */
883 public unsetCurrentBlock(): void {
884 this.currentBlockIndex = -1;
885 }
886
887 /**
888 * Clears Editor

Callers 5

removeBlockMethod · 0.95
removeAllBlocksMethod · 0.95
clearMethod · 0.95
defaultBehaviourMethod · 0.80
documentClickedMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected