I created a browser view that is designed to be used in the
src of an iframe embedded in a third-party (non-Plone) site. Inside this browser view, I use
pat-select2. The problem is:
<select class='pat-select2'...>is rendered as a naked
selectin the iframe, which means the pattern never even runs to transform it into the select2 widget.
- If I load the view in a browser by itself (i.e. not embedded in an iframe), then everything works fine.
- There are no errors in the browser console, in either case.
Obviously, in order to iframe-embed the view, the view template is very stripped down, without most of the Plone baggage.
<head> I'm loading:
... along with my own js and css.
Would anyone have any idea how to make this work?