UNPKG

@atlaskit/editor-plugin-focus

Version:

Focus plugin for @atlaskit/editor-core

41 lines (24 loc) 1.89 kB
# 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 - **Install** - *yarn add @atlaskit/editor-plugin-focus* - **npm** - [@atlaskit/editor-plugin-focus](https://www.npmjs.com/package/@atlaskit/editor-plugin-focus) - **Source** - [Bitbucket](https://bitbucket.org/atlassian/atlassian-frontend/src/master/packages/editor/editor-plugin-focus) - **Bundle** - [unpkg.com](https://unpkg.com/@atlaskit/editor-plugin-focus/dist/) ## 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](https://atlaskit.atlassian.com/packages/editor/editor-plugin-focus) for documentation and examples for this package. ## Support For internal Atlassian, visit the slack channel [#help-editor](https://atlassian.slack.com/archives/CFG3PSQ9E) for support or visit [go/editor-help](https://go/editor-help) to submit a bug. ## License Please see [Atlassian Frontend - License](https://hello.atlassian.net/wiki/spaces/AF/pages/2589099144/Documentation#License) for more licensing information.