Introduction
CKEditor allows us to add the images and videos in CKEditor content. If you want to add an image in an editor content, just put the URL of your image path in the image dialog popup -- but the real Web Applications user cannot do this. Thus, first upload the files to the Server, followed by the image path, which is automatically bound in an image tag. This post allows you to learn how to add your own fileuploader in CKEditor.
Without File Uploader
In this case, just put the whole path of the image in the URL box and we can get the images inside CKEditor content.

With File Uploader
In this case, we connect our own File Uploader or Server and the image preview pops up with CKEditor dialog. Thus, the user can upload or select the files.
Step 1
Enable browse the Server button.
You can see the above image doesn’t have any browse button in the image dialog. Thus, we must enable the browse Server button to bind custom events. Thus, we add filebrowserBrowseUrl option in config.js.
- CKEDITOR.editorConfig = function( config ) {
- config.filebrowserBrowseUrl = 'javascript:void(0)';
- }
Now, we can get the Browse Server button.

Step 2
Bind CKEditor dialog with Custom File Uploader
Add the codes given below to your CKEditor page.



Zainab RasoolPosted Jul 21, 2020, 4:34 AM
I am not getting browser buttton on adding this to config.js config.filebrowserBrowseUrl = 'javascript:void(0)';
Joginder BangerPosted Mar 2, 2017, 4:11 AM
If image will be save in database then plz show how get the image .
Joginder BangerPosted Mar 2, 2017, 4:10 AM
HI thanks for sharing information, but i have question where is the image save?