npm.io
12.0.0 • Published 11h ago

@atlaskit/editor-plugin-focus

Licence
Apache-2.0
Version
12.0.0
Deps
2
Size
27 kB
Vulns
0
Weekly
0

Editor Plugin Focus

Focus 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 Focus plugin tracks and manages the editor's focus state. It monitors DOM focus and blur events, maintaining a shared state that indicates whether the editor currently has focus. This allows other plugins and components to react to focus state changes.

Key features

  • Focus tracking - Monitor when the editor gains or loses focus
  • Shared state - Access the editor's focus state through the plugin API
  • DOM event handling - Automatically handles browser focus and blur events

Install

Usage

Internal use only

@atlaskit/editor-plugin-focus 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 focus 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.