❯ ~/robonen/tools
core
  • stdlibapi
  • platformapi
  • fetchapi
  • encodingapi
  • crdtapi
vue
  • vueapi
  • writekitapi
    ❯
    guide
    • Introduction
    • Playground
    • ❯addMarkInline
    • ❯attrsEq
    • ❯attrValueEq
    • ❯blockById
    • ❯blockIndex
    • ❯caret
    • ❯createDoc
    • ❯createId
    • ❯createNode
    • ❯deleteTextInline
    • ❯findBlock
    • ❯firstBlock
    • ❯hasMark
    • ❯hasMarkType
    • ❯inlineLength
    • ❯inlineText
    • ❯insertInline
    • ❯insertTextInline
    • ❯isAcrossBlocks
    • ❯isCollapsed
    • ❯isInlineContent
    • ❯isNodeSelection
    • ❯isTextSelection
    • ❯lastBlock
    • ❯markEq
    • ❯marksAt
    • ❯marksEq
    • ❯nextBlock
    • ❯nodeInline
    • ❯nodeSelection
    • ❯nodeText
    • ❯normalizeInline
    • ❯normalizeMarks
    • ❯orderedSelection
    • ❯position
    • ❯positionEq
    • ❯previousBlock
    • ❯rangeHasMarkType
    • ❯removeMarkInline
    • ❯replaceBlocks
    • ❯replaceInline
    • ❯selectionEq
    • ❯sliceInline
    • ❯textSelection
    • ❯withAttrs
    • ❯withContent
    • ❯withType
  • primitivesui
configs
  • eslintguide
  • tsconfigguide
  • tsdownguide
infra
  • renovateguide
@robonen/writekit/isAcrossBlocks
fn

isAcrossBlocks

tested

Whether the selection spans more than one block.

Source Tests

Signature

ts
export function isAcrossBlocks(sel: Selection): boolean{ ... }

Parameters

ParameterTypeDefaultDescription
selSelection——

Returns

boolean
on this page
  • Signature
  • Parameters
  • Returns