npm.io
16.0.0 • Published 1 week ago

@atlaskit/editor-plugin-width

Licence
Apache-2.0
Version
16.0.0
Deps
3
Size
42 kB
Vulns
0
Weekly
0

Editor Plugin Width

Width 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 Width plugin tracks and manages the editor container width and line length dimensions. It monitors resize events and provides shared state for width-related information that other editor plugins can utilize.

Key features

  • Container width tracking - Monitor and track the editor container's width in real-time
  • Line length tracking - Track the content area's line length for layout calculations
  • Resize observation - Automatically detect and respond to container size changes using ResizeObserver
  • Shared state - Expose width and line length information through plugin shared state
  • Transition handling - Refresh width calculations on CSS transitions

Install


Usage


Internal use only

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