@atlaskit/editor-plugin-scroll-into-view
v10.2.0
Published
Scroll-into-view plugin for @atlaskit/editor-core
Readme
Editor Plugin Scroll Into View
Scroll-into-view 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 Scroll Into View plugin automatically scrolls the user's selection into view whenever the document is updated through user actions such as inserting, deleting, or formatting content. This ensures that the cursor and relevant content remain visible to the user during editing operations.
Key features
- Automatic scroll handling - Scroll selection into view on document changes
- Smart filtering - Ignores collaborative changes, appended transactions, and undo/redo operations
- Configurable behavior - Can be disabled per transaction using metadata
- Input rule awareness - Skips scrolling for input rule transactions to avoid unwanted behavior
Install
- Install - yarn add @atlaskit/editor-plugin-scroll-into-view
- npm - @atlaskit/editor-plugin-scroll-into-view
- Source - Bitbucket
- Bundle - unpkg.com
Usage
Internal use only
@atlaskit/editor-plugin-scroll-into-view 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 scroll-into-view 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.
