Juergen Posted November 22, 2015 Share Posted November 22, 2015 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. 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 More sharing options...
BitPoet Posted November 22, 2015 Share Posted November 22, 2015 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). 1 Link to comment Share on other sites More sharing options...
bernhard Posted November 22, 2015 Share Posted November 22, 2015 Maybe the easiest would be some admincustomfiles CSS display: none ? 1 Link to comment Share on other sites More sharing options...
Juergen Posted November 22, 2015 Author Share Posted November 22, 2015 Thanks for your answeres - I guess the CSS solution would be the easiest in this case. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now