To add images from local storage in CKEditor, follow the steps given below:
Enable the 'Image' plugin in CKEditor if it's not enabled by default.
Modify the CKEditor configuration (
config.js
) to include the
filebrowserImageUploadUrl
option:
Create an image upload handler on your server that processes the uploaded image and returns the image URL in the format that is required by CKEditor
Add an upload button in the toolbar by ensuring the ‘Image’ button is available:
Set permissions for image uploading if needed.