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

Method removeFakeCursor

src/components/selection.ts:401–409  ·  view source on GitHub ↗

* Removes fake cursor from a container * * @param container - container to look for

(container: HTMLElement = document.body)

Source from the content-addressed store, hash-verified

399 * @param container - container to look for
400 */
401 public static removeFakeCursor(container: HTMLElement = document.body): void {
402 const fakeCursor = $.find(container, `.codex-editor__fake-cursor`);
403
404 if (!fakeCursor) {
405 return;
406 }
407
408 fakeCursor.remove();
409 }
410
411 /**
412 * Removes fake background

Callers 1

selectedMethod · 0.80

Calls 2

findMethod · 0.80
removeMethod · 0.45

Tested by

no test coverage detected