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

Method dropCursor

src/components/domIterator.ts:102–109  ·  view source on GitHub ↗

* Sets cursor to the default position and removes CSS-class from previously focused item

()

Source from the content-addressed store, hash-verified

100 * Sets cursor to the default position and removes CSS-class from previously focused item
101 */
102 public dropCursor(): void {
103 if (this.cursor === -1) {
104 return;
105 }
106
107 this.items[this.cursor].classList.remove(this.focusedCssClass);
108 this.cursor = -1;
109 }
110
111 /**
112 * Leafs nodes inside the target list from active element

Callers 1

setCursorMethod · 0.95

Calls 1

removeMethod · 0.45

Tested by

no test coverage detected