Image upload overview
In CKEditor 5, an upload adapter sends uploaded images to your own server or a storage service such as CKBox. In a properly configured editor, there are several ways for users to insert images :
This demo is configured to use
CKBox
for image upload and management. Use the image upload button
to upload images or the CKBox button
to browse and select existing images from the file manager. It also includes the
AutoImage
plugin, which lets you
paste image URLs directly
.
Uploading images
To upload an image, do the following:
The image will appear in the content.
Inserting images from CKBox
To insert an image using CKBox, do the following:
The image will appear in the content.
Note: You can choose more than one file at a time. You can also upload images while inside CKBox with its native upload mechanism.
Other ways to upload images
Except for pasting URLs to images, all other solutions mentioned above require the image to be uploaded to a server. The server will then be responsible for providing the image URL used by CKEditor 5 to display the image in the document. The software that makes the image upload possible is called an upload adapter . It is a callback that tells the WYSIWYG editor how to send the file to the server. There are two main strategies for getting the image upload to work that you can adopt in your project:
If you want to get a better look under the hood and learn more about the upload process, you can check out the “Custom image upload adapter” deep dive guide covering this topic.
CKBox is the ultimate solution for not just image upload but also file management in CKEditor 5.
It is a modern file uploader with a clean interface, automatic support for responsive images, and top-notch UX. It also provides editing capabilities like cropping, rotating, or flipping.
Thanks to the native CKEditor 5 integration, CKBox supports drag and drop file upload as well as pasting images from the clipboard, Microsoft Word, or Google Docs.
With CKBox, users can upload files and categorize them into different groups. They can also change the way the files are displayed, for example, by setting the image thumbnail size or deciding how many files are shown on one page. Files can be uploaded, deleted, renamed, and tagged. File properties like dimensions, upload date, or size are also easily accessible and can be used to sort the file view alongside a regular search.
The CKBox On-premises version offers various storage options, from local filesystem, through MySQL and Postgres databases, to AWS S3 and Azure Blob Storage solutions. The SaaS version is using a blazing-fast CDN powered by AWS S3.
Learn how to use CKBox in your project .
Uploadcare is the ultimate solution for image upload and editing in CKEditor 5.
It is a modern file uploader with a clean interface, automatic support for responsive images, on-the-fly image optimization, fast delivery through global CDN network, multiple third party integrations and vast image editing capabilities such as cropping, filtering and adjusting image parameters.
Thanks to the native CKEditor 5 integration, Uploadcare supports drag-and-drop file upload as well as pasting images from the clipboard, Microsoft Word, or Google Docs.
With Uploadcare, users can upload files from external services like Dropbox, Facebook, Google Drive, Google Photos, OneDrive or from local computer. Images can be easily adjusted with built-in image editor. The storage is configuration-less for ease of use. It also offers reliable and fast AWS S3 storage solution .
Learn how to use Uploadcare in your project .
The CKFinder feature provides a bridge between the rich-text editor and CKFinder , a browser-based file uploader with server-side connectors (PHP, Java, and ASP.NET).
There are two ways you can integrate CKEditor 5 with CKFinder:
Learn how to integrate CKEditor 5 with CKFinder in your project .
The
simple upload adapter
allows uploading images to your server using the
XMLHttpRequest
API with a minimal editor configuration.
Learn how to use the simple upload adapter in CKEditor 5 .
The Base64 upload feature converts images inserted into the editor into Base64 strings in the editor output .
Please remember that while
Base64
upload is an easy solution, it is also highly inefficient. The image file itself is kept as data in the database, generating a much heavier data load and higher transfer. We recommend using alternative ways to upload images into CKEditor 5.