Skip to content

Type Editor


Type Editor / @type-editor/commands / skip-ignored-nodes

skip-ignored-nodes

Functions

FunctionDescription

skipIgnoredNodesAfter

Ensures the cursor isn't directly before one or more ignored nodes.

This function traverses forward from the current cursor position to find and skip over any zero-size nodes that should be invisible to the user.

skipIgnoredNodesBefore

Ensures the cursor isn't directly after one or more ignored nodes, which would confuse the browser's cursor motion logic.

This function traverses backward from the current cursor position to find and skip over any zero-size nodes that should be invisible to the user.