Reputation: 13536
I want to be able to click on the image icon in CKEditor and be able to browser the local file system. I would like the chosen file to be passed to the editor just like the standard URL is. I want to use the base64image plugin to embed the image inline.
I have tried using CKFinder but, when I click the Browse Server
button in the Image Properties
dialog, I get an empty window with just 'run();' in the centre.
Upvotes: 2
Views: 783
Reputation: 2475
To enable CKFinder in read-only (gallery) mode, set the readOnly
configuration option to true
and pass it as a configruation option to the CKFinder.setupCKEditor
function:
CKFinder.setupCKEditor( editor, {
readOnly: true
} );
This will disable the possibility to modify anything.
If you only want to disable uploads, you can disable modules related to upload operations:
CKFinder.setupCKEditor( editor, {
removeModules: 'FormUpload,Html5Upload,UploadFileButton'
} );
The second thing is to change Access Control settings in the server side connector by setting 'FILE_CREATE'
to false
so the uploads will be disabled also on the server side.
Upvotes: 2