New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More

@ckeditor/ckeditor5-easy-image

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ckeditor/ckeditor5-easy-image

Easy Image feature for CKEditor 5.


Version published
Weekly downloads
582K
increased by7.8%
Maintainers
1
Weekly downloads
 
Created

What is @ckeditor/ckeditor5-easy-image?

@ckeditor/ckeditor5-easy-image is a plugin for CKEditor 5 that simplifies the process of inserting images into the editor. It provides an easy-to-use interface for uploading images directly from the user's device or from a URL, and it integrates seamlessly with CKEditor's image handling capabilities.

What are @ckeditor/ckeditor5-easy-image's main functionalities?

Easy Image Upload

This feature allows users to upload images directly from their device to the editor. The code sample demonstrates how to configure the CKEditor with the EasyImage plugin and set up the necessary cloud services for image upload.

ClassicEditor.create(document.querySelector('#editor'), { extraPlugins: [ EasyImage ], cloudServices: { tokenUrl: 'https://example.com/cs-token-endpoint', uploadUrl: 'https://your-organization-id.cke-cs.com/easyimage/upload/' } })

Image Insertion from URL

This feature allows users to insert images into the editor from a URL. The code sample shows how to configure the CKEditor with the EasyImage plugin and use the uploadImage method to insert an image from a URL.

ClassicEditor.create(document.querySelector('#editor'), { extraPlugins: [ EasyImage ], cloudServices: { tokenUrl: 'https://example.com/cs-token-endpoint', uploadUrl: 'https://your-organization-id.cke-cs.com/easyimage/upload/' } }).then(editor => { editor.plugins.get('EasyImage').uploadImage('https://example.com/image.jpg'); });

Other packages similar to @ckeditor/ckeditor5-easy-image

FAQs

Package last updated on 25 Jul 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts