Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Upload to..." impossible in containers of type other than 'Folder' #1270

Open
sauzher opened this issue Jan 12, 2023 · 0 comments
Open

"Upload to..." impossible in containers of type other than 'Folder' #1270

sauzher opened this issue Jan 12, 2023 · 0 comments

Comments

@sauzher
Copy link

sauzher commented Jan 12, 2023

Bring here this: https://community.plone.org/t/tinymce-upload-file-to-containers-other-than-folder-large-plone-folder-plone-site-impossible/16135/2

The problem is that selectableTypes are defaulted to ['Folder'] here

selectableTypes: ["Folder"],

IMHO, it would be nice either of this two options:

  1. let the used related items pattern look for some generalist interface like IPrincipiaFolderish as suggested by @petschki (https://community.plone.org/t/tinymce-upload-file-to-containers-other-than-folder-large-plone-folder-plone-site-impossible/16135/3?u=sauzher)
  2. get selectableTypes be parametrized so that a consumer (for ex. TinyMCE template) could pass its specific configuration via data-pat-upload. Actually TinyMCE has Products.CMFPlone.interfaces.controlpanel.ITinyMCESchema.plone.contains_objects configuration registry option that seems to fit quite well.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant