Jump to content

Restrict image selection in ckeditor


Sunda
 Share

Recommended Posts

Hello everyone,

I'm desperately searching for a way to restrict the selection of images, which a user can insert into the page using ckeditor.

Basically it would be enough to find a way to remove the menu on top where you can browser to other pages and look for images there.

choose_image.png

I hope I'm just overlooking some kind of access settings.

Thanks in advance for your help.

Sincerely, Philipp

Link to comment
Share on other sites

Hi @szabesz,

thank you for your answer. With the article you linked I was able to define a hook in the admin file. With the hook I changed the output of the execute()-method in ProcessPageEditImageSelect and removed the elements making it possible to browse to other sites.

  • Like 1
Link to comment
Share on other sites

Just crosslinking to a related topic - this one about about changing the starting page when inserting an image from another page, but there are lots of code examples and links to mini modules that I thought might be useful to help you understand what is possible. 

 

  • 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...