@atlaskit/editor-plugin-copy-button
Version:
editor-plugin-copy-button for @atlaskit/editor-core
44 lines (31 loc) • 2.3 kB
Markdown
# Editor Plugin Copy Button
Copy Button 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 Copy Button plugin provides toolbar button functionality for copying content within the Atlassian Editor. It integrates with the floating toolbar to display copy buttons for marks and nodes, offering visual feedback and accessibility features for copy operations.
## Key features
- **Copy button toolbar integration** - Seamlessly integrate copy buttons into the floating toolbar
- **Mark and node support** - Support copying both marks and nodes with specific copy handlers
- **Visual feedback** - Provide hover decoration and copied state indication to users
- **Accessibility support** - Announce copy operations to users via aria notifications
- **Analytics integration** - Track copy button interactions with analytics events
- **Customizable handlers** - Configure custom mouse and focus event handlers for copy buttons
## Install
- **Install** - *yarn add @atlaskit/editor-plugin-copy-button*
- **npm** - [@atlaskit/editor-plugin-copy-button](https://www.npmjs.com/package/@atlaskit/editor-plugin-copy-button)
- **Source** - [Bitbucket](https://bitbucket.org/atlassian/atlassian-frontend/src/master/packages/editor/editor-plugin-copy-button)
- **Bundle** - [unpkg.com](https://unpkg.com/@atlaskit/editor-plugin-copy-button/dist/)
## Usage
**Internal use only**
@atlaskit/editor-plugin-copy-button 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 copy-button](https://atlaskit.atlassian.com/packages/editor/editor-plugin-copy-button) 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.