Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mlewand/ckeditor5-paste-link
CKEditor 5 plugin that links the selected content with an URL from the clipboard.
https://github.com/mlewand/ckeditor5-paste-link
Last synced: about 1 month ago
JSON representation
CKEditor 5 plugin that links the selected content with an URL from the clipboard.
- Host: GitHub
- URL: https://github.com/mlewand/ckeditor5-paste-link
- Owner: mlewand
- License: mit
- Created: 2022-08-13T09:32:10.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-10-08T12:14:02.000Z (over 2 years ago)
- Last Synced: 2024-10-31T02:33:17.851Z (3 months ago)
- Language: JavaScript
- Homepage:
- Size: 180 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# CKEditor5 paste link
CKEditor 5 plugin that links the selected content with an URL from the clipboard.
https://user-images.githubusercontent.com/5353898/184495493-d4984eee-699b-4e7b-a0d1-03d3f9f57dbb.mp4
## Configuration options
### `pasteLink.protocols`
Allows to change the list of accepted protocols.
```js
editor = await ClassicEditor.create( domElement, {
plugins: [
Paragraph,
Essentials,
PasteLink
],
pasteLink: {
protocols: [ 'ftp', 'http', 'https', 'mailto', 'custom-protocol' ]
}
} );
```Array of strings. Defaults to: `[ 'http', 'https' ]`.
## Developing the package
### Preview
```
yarn install
yarn start
```This will open http://localhost:8080/ sample page with the plugin enabled.
### Testing
```
yarn install
yarn test -w
```## License
This package is available under [MIT license](https://opensource.org/licenses/MIT).