@mlewand/ckeditor5-paste-link

0.0.2 • Public • Published

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.

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.

Package Sidebar

Install

npm i @mlewand/ckeditor5-paste-link

Weekly Downloads

2

Version

0.0.2

License

MIT

Unpacked Size

35.7 kB

Total Files

9

Last publish

Collaborators

  • mlewand