# @atlaskit/editor-plugin-width

> Width plugin for @atlaskit/editor-core

Latest version **34.0.0** (published 2026-11-17) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @atlaskit/editor-plugin-width
pnpm add @atlaskit/editor-plugin-width
yarn add @atlaskit/editor-plugin-width
bun add @atlaskit/editor-plugin-width
```

## Health

**Score 65/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; recently updated; high maintenance score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 34.0.0 |
| Published | 2026-11-17 |
| First published | 2023-05-24 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 5 |
| Unpacked size | 69.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Atlassian Pty Ltd |
| Maintainers | atlassianartifactteam |

## Links

- npm: https://www.npmjs.com/package/@atlaskit/editor-plugin-width
- Repository: https://bitbucket.org/atlassian/atlassian-frontend-mirror
- Homepage: https://bitbucket.org/atlassian/atlassian-frontend-mirror#readme
- Issues: https://bitbucket.org/atlassian/atlassian-frontend-mirror/issues
- npm.io page: https://npm.io/package/@atlaskit/editor-plugin-width

## Dependencies (5)

- [@babel/runtime](https://npm.io/package/@babel/runtime.md) ^7.0.0
- [bind-event-listener](https://npm.io/package/bind-event-listener.md) ^3.0.0
- [@atlaskit/editor-prosemirror](https://npm.io/package/@atlaskit/editor-prosemirror.md) ^9.0.0
- [@atlaskit/platform-feature-experiments](https://npm.io/package/@atlaskit/platform-feature-experiments.md) ^0.3.0
- [@atlaskit/platform-feature-flags-react](https://npm.io/package/@atlaskit/platform-feature-flags-react.md) ^1.2.0

## Recent versions

- 34.0.0 (latest) — 2026-11-17
- 33.0.0 — 2026-11-17
- 32.0.0 — 2026-11-16
- 31.0.0 — 2026-10-27
- 30.0.1 — 2026-10-22
- 30.0.0 — 2026-10-20
- 29.0.0 — 2026-10-16
- 28.0.0 — 2026-10-13
- 27.0.0 — 2026-10-08
- 26.0.0 — 2026-10-07
- 25.0.0 — 2026-10-02
- 24.1.0 — 2026-10-01
- 24.0.0 — 2026-10-01
- 23.0.0 — 2026-09-25
- 22.0.0 — 2026-09-24
- … 99 more at https://npm.io/package/@atlaskit/editor-plugin-width/versions

## README

# 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
---
- **Install** - *yarn add @atlaskit/editor-plugin-width*
- **npm** - [@atlaskit/editor-plugin-width](https://www.npmjs.com/package/@atlaskit/editor-plugin-width)
- **Source** - [Bitbucket](https://bitbucket.org/atlassian/atlassian-frontend/src/master/packages/editor/editor-plugin-width)
- **Bundle** - [unpkg.com](https://unpkg.com/@atlaskit/editor-plugin-width/dist/)

## 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](https://atlaskit.atlassian.com/packages/editor/editor-plugin-width) 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.

---
_Source: https://npm.io/package/@atlaskit/editor-plugin-width · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
