Skip to content

Type Editor


Type Editor / @type-editor/menu / menu-items/util/is-mark-active

menu-items/util/is-mark-active

Functions

FunctionDescription

isMarkActive

Checks if a specific mark type is active in the current editor selection.

For empty selections (cursor position), checks if the mark is present in the stored marks or in the marks at the cursor position. For range selections, checks if the mark is present anywhere within the selected range.