Jump to content

Is it possible to specify an image upload field for uploading images in ckeditor?


Juergen
 Share

Recommended Posts

Hello @ all,

General question: CKEditor provides the ability to upload images directly in the editor. On a page I have  2 image upload fields - one should be for uploading images via the editor, the second one is for an image gallery.

By clicking the upload button in the editor  the 2 upload buttons will be displayed - the one of the gallery and the other one for the editor images.

post-2257-0-64500100-1448194265_thumb.pn

I only want that the upload button for the editor images will appear and not the one for the gallery. Is that possible.

Best regards

Link to comment
Share on other sites

You could probably do that by hooking into ProcessPageEditImageSelect::execute and filter out unwanted fields from $imageFields before they get concatenated into $imageFieldNames (perhaps with a module that has a config field that lets you specify a list of unwanted fields).

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...