Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Products/CMFPlone/patterns/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ def tinymce(self):
current_path = folder.absolute_url()[len(portal_url) :]

image_types = settings.image_objects or []
folder_types = settings.contains_objects or []

server_url = self.request.get("SERVER_URL", "")
site_path = portal_url[len(server_url) :]
Expand All @@ -147,6 +148,8 @@ def tinymce(self):
)
contentbrowser_config = call_callables(contentbrowser_config, self.context)

contentbrowser_config["browseableTypes"] = folder_types

configuration = {
"base_url": self.context.absolute_url(),
"imageTypes": image_types,
Copy link
Member

@petschki petschki Sep 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

instead of directly setting the contentbrowser options, we should add folder_types in the base configuration with "folderTypes": folder_types ... tinymce pattern later decides if "folderTypes" should become "browseableTypes" in the imageModal ...

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Expand Down
2 changes: 2 additions & 0 deletions news/4207.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
TinyMCE: Restore ability to choose which content are folderish types
[frapell]