{"id":24540655,"url":"https://github.com/mistralys/ckeditor5-paste-plaintext","last_synced_at":"2026-01-11T01:36:39.375Z","repository":{"id":56160544,"uuid":"278119060","full_name":"Mistralys/ckeditor5-paste-plaintext","owner":"Mistralys","description":"Paste as plaintext plugin for CKEditor5","archived":false,"fork":false,"pushed_at":"2023-07-27T15:10:32.000Z","size":71,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-25T01:46:47.342Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Mistralys.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-07-08T14:58:17.000Z","updated_at":"2023-07-27T09:12:06.000Z","dependencies_parsed_at":"2022-08-15T13:50:38.950Z","dependency_job_id":null,"html_url":"https://github.com/Mistralys/ckeditor5-paste-plaintext","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mistralys%2Fckeditor5-paste-plaintext","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mistralys%2Fckeditor5-paste-plaintext/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mistralys%2Fckeditor5-paste-plaintext/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mistralys%2Fckeditor5-paste-plaintext/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Mistralys","download_url":"https://codeload.github.com/Mistralys/ckeditor5-paste-plaintext/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243830914,"owners_count":20354850,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-01-22T18:14:34.180Z","updated_at":"2026-01-11T01:36:39.340Z","avatar_url":"https://github.com/Mistralys.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Paste as plain text plugin for CKEditor5\n\nThis plugin adds a toggleable button to enable or disable pasting text as \nplain text only.\n\nIt is virtually the same as the example plugin from the [clipboard tutorial][], \nbut as an npm package to be easy to integrate in CKEditor5 builds.\n\n## Installation\n\nTo add this to your CKEditor5 build, add the package to your project first:\n\n```\nnpm install --save ckeditor5-paste-plaintext\n```\n\nThen add the needed import to your `app.js`:\n\n```javascript\nimport PasteAsPlainText from 'ckeditor5-paste-plaintext/src/plaintext';\n```\n\nCreate the build with webpack, or your preferred way of building the \nsources - for example:\n\n```\nwebpack --mode development\n```\n\n(for more details on the build process, see the [framework quick start][].)\n\nAnd finally, add the Plugin to the editor configuration, and the button \nto the toolbar (among the other plugins, of course):\n\n```javascript\nClassicEditor\n    .create( document.querySelector( '#editor' ), {\n        plugins: [ \n            // your other plugins here\n            PasteAsPlainText\n        ],\n        toolbar: [ \n            // your other buttons here\n            'pasteAsPlainText'\n        ]\n    })\n```\n\n## Example project\n\nTo see an example of a CKEditor build that includes the plugin, see the\nfollowing repository: [AppFramework CKEditor5][].\n\nRelevant there are the following files:\n\n- [package.json](https://github.com/Mistralys/appframework-ckeditor5/blob/ef704b6819da1e4cb696413cf9991f4a1f064507/package.json)\n  Requires the plugin as a dependency.\n- [src/ckeditor.js](https://github.com/Mistralys/appframework-ckeditor5/blob/ef704b6819da1e4cb696413cf9991f4a1f064507/src/ckeditor.js) \n  Imports the plugin, and adds it to the build.\n\n## Credits\n\nThe toolbar icon is based on an SVG file created by [Vitaly Gorbachev](https://www.flaticon.com/authors/vitaly-gorbachev).\n\n\n[AppFramework CKEditor5]: https://github.com/Mistralys/appframework-ckeditor5\n[clipboard tutorial]: https://ckeditor.com/docs/ckeditor5/latest/framework/guides/deep-dive/clipboard.html#paste-as-plain-text-plugin-example\n[framework quick start]: https://ckeditor.com/docs/ckeditor5/latest/framework/guides/quick-start.html","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmistralys%2Fckeditor5-paste-plaintext","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmistralys%2Fckeditor5-paste-plaintext","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmistralys%2Fckeditor5-paste-plaintext/lists"}