# ckeditor5-paste-plaintext

> Paste as plaintext plugin for CKEditor5

Latest version **1.3.0** (published 2023-07-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install ckeditor5-paste-plaintext
pnpm add ckeditor5-paste-plaintext
yarn add ckeditor5-paste-plaintext
bun add ckeditor5-paste-plaintext
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.3.0 |
| Published | 2023-07-27 |
| First published | 2020-07-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 12.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Mistralys |
| Maintainers | mistralys |
| Keywords | ckeditor5, ckeditor-5, ckeditor5-plugin, paste, plaintext |

## Links

- npm: https://www.npmjs.com/package/ckeditor5-paste-plaintext
- Repository: https://github.com/mistralys/ckeditor5-paste-plaintext
- Homepage: https://github.com/mistralys/ckeditor5-paste-plaintext#readme
- Issues: https://github.com/mistralys/ckeditor5-paste-plaintext/issues
- npm.io page: https://npm.io/package/ckeditor5-paste-plaintext

## Dependencies (3)

- [@ckeditor/ckeditor5-ui](https://npm.io/package/@ckeditor/ckeditor5-ui.md) ^38.0.0
- [@ckeditor/ckeditor5-core](https://npm.io/package/@ckeditor/ckeditor5-core.md) ^38.0.0
- [@ckeditor/ckeditor5-clipboard](https://npm.io/package/@ckeditor/ckeditor5-clipboard.md) ^38.0.0

## Alternatives

- [ext-list](https://npm.io/package/ext-list.md) — 6.3M weekly downloads
- [@lexical/selection](https://npm.io/package/@lexical/selection.md) — 3.8M weekly downloads
- [@lexical/text](https://npm.io/package/@lexical/text.md) — 3.6M weekly downloads
- [@lexical/clipboard](https://npm.io/package/@lexical/clipboard.md) — 3.0M weekly downloads
- [@tiptap/extension-mention](https://npm.io/package/@tiptap/extension-mention.md) — 3.0M weekly downloads

## Recent versions

- 1.3.0 (latest) — 2023-07-27
- 1.0.1 — 2020-07-09
- 1.0.0 — 2020-07-08

## README

# Paste as plain text plugin for CKEditor5

This plugin adds a toggleable button to enable or disable pasting text as plain text only.

It is virtually the same as the example plugin from the [clipboard tutorial](https://ckeditor.com/docs/ckeditor5/latest/framework/guides/deep-dive/clipboard.html#paste-as-plain-text-plugin-example), but as an npm package to be easy to integrate in CKEditor5 builds.

## Installation

To add this to your CKEditor5 build, add the package to your project first:

```
npm install --save ckeditor5-paste-plaintext
```

Then add the needed import to your `app.js`:

```javascript
import PasteAsPlainText from 'ckeditor5-paste-plaintext/src/plaintext';
```

Create the build with webpack, or your preferred way of building the sources - for example:

```
webpack --mode development
```

(for more details on the build process, see the [framework quick start](https://ckeditor.com/docs/ckeditor5/latest/framework/guides/quick-start.html).)

And finally, add the Plugin to the editor configuration, and the button to the toolbar (among the other plugins, of course):

```javascript
ClassicEditor
    .create( document.querySelector( '#editor' ), {
        plugins: [ 
            // your other plugins here
            PasteAsPlainText
        ],
        toolbar: [ 
            // your other buttons here
            'pasteAsPlainText'
        ]
    })
)
```

## Credits

The toolbar icon is based on an SVG file created by [Vitaly Gorbachev](https://www.flaticon.com/authors/vitaly-gorbachev).

---
_Source: https://npm.io/package/ckeditor5-paste-plaintext · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
