npm.io
15.0.11 • Published 2d ago

@atlaskit/editor-plugin-selection

Licence
Apache-2.0
Version
15.0.11
Deps
0
Vulns
0
Weekly
0

Editor Plugin Selection

Selection plugin for @atlaskit/editor-core

Note: This component is designed for internal Atlassian development. External contributors will be able to use this component but will not be able to submit issues.

Overview

The Selection plugin provides comprehensive selection and cursor management capabilities for the Atlassian Editor. It integrates with ProseMirror to handle text selection, cursor positioning, gap cursors for structural navigation, and mark boundary indicators for better visual feedback during editing.

Key features

  • Text selection management - Handle and manipulate text selections within the editor
  • Gap cursor support - Navigate between non-text blocks with visual indicators
  • Mark boundary cursors - Display cursor position indicators at mark boundaries (e.g., code, bold, italic)
  • Auto-expand selection - Automatically expand selection ranges when interacting with inline nodes
  • Selection utilities - Retrieve selection fragments and local IDs from the editor state
  • Relative selection positioning - Position selections relative to document nodes

Install


Usage


Internal use only

@atlaskit/editor-plugin-selection is intended for internal use by the @atlaskit/editor-core and as a plugin dependency of the Editor within your product.

Direct use of this component is not supported.

Please see Atlaskit - Editor plugin selection for documentation and examples for this package.

Support


For internal Atlassian, visit the slack channel #help-editor for support or visit go/editor-help to submit a bug.

License


Please see Atlassian Frontend - License for more licensing information.