In CKEditor by default file browser option is not enabled.
You can only add a file to an editor with URL.
To add file browser option require to update CKEditor configuration and use options while initialization.
In this tutorial, I show how you can add file browser option in CKEditor and upload it with PHP.