Closed petschki closed 7 years ago
yes, I think that makes more sense in the context of plone.app.widgets.
haha ... no way ... @thet I've just stumbled upon your latest pull request: https://github.com/plone/plone.app.widgets/pull/160 ... this is exactly the same problem we had mentioned above. I'd rather recommend to use self.wrapped_context()
from p.a.textfield instead of fallback to the root ...
Use case:
Plone 4.3-latest plone.app.widgets/1.x collective.cover/master
We've implemented plone modals for editing the cover-tiles. Everything works good except the RichText widget. This is because the tile context is a simle dict object and therefore the
get_tinymce_options
falls back to plone5 behaviour :/ . With a small and already existing method from plone.app.textfield we get thewrapped_context
of the widget and are able to render it correctly for the tiles. see the code here: https://github.com/collective/collective.cover/blob/67258bf457c16e96731ed40816e6464f08395563/src/collective/cover/widgets/richtext.pyMy question is: should this enhancement rather be implemented in p.a.widgets?
@thet any thoughts?