<div dir="ltr">Hello,<div><br></div><div>As I've mentionned at the last Framework team meeting, my changes to fix the theming editor in Plone 5 are ok:</div><div>- the backend is implemented in plone.resourceeditor (I have just merged my changes in master).</div><div>- I have fixed the 2 involved patterns (filemanager and thememapper) during (and after) the Bristol sprint (merged in master too since few months)</div><div><br></div><div>Now, I want to make those 2 patterns available in plone.app.theming pages properly. So I need to bundle them.</div><div><br></div><div>I have first tried to create a local mockup folder in plone.app.theming using the Yeoman generator, but I had many issues (like @{bowerPath} not resolved in less files, and different path issues...).</div><div>So I decided to just copy the actual mockup folder sources (from <a href="https://github.com/plone/mockup">https://github.com/plone/mockup</a>) into plone.app.theming/mockup, and work from there.</div><div>It worked better.</div><div>That's what is currently committed in my branch here:</div><div><a href="https://github.com/plone/plone.app.theming/tree/integrate-theme-editor">https://github.com/plone/plone.app.theming/tree/integrate-theme-editor</a><br></div><div><br></div><div>Here is my problem:</div><div><br></div><div>- I have changed (for test purpose) the plone bundle to add my 2 patterns: <a href="https://github.com/plone/plone.app.theming/blob/integrate-theme-editor/mockup/js/bundles/plone.js#L19">https://github.com/plone/plone.app.theming/blob/integrate-theme-editor/mockup/js/bundles/plone.js#L19</a><br></div><div>If I generate the Plone bundle and put the results in Products.CMFPlone, the theming editor works just fine.</div><div>But of course, we do not want those 2 extra patterns to be part of our regular plone bundle.</div><div><br></div><div>- I have defined a specific bundle: <a href="https://github.com/plone/plone.app.theming/blob/integrate-theme-editor/mockup/js/bundles/thememapperbundle.js">https://github.com/plone/plone.app.theming/blob/integrate-theme-editor/mockup/js/bundles/thememapperbundle.js</a>, I have put the resulting files in src/plone.app.theming/src/plone/app/theming/browser/resources and I load them from my template:</div><div><a href="https://github.com/plone/plone.app.theming/blob/integrate-theme-editor/src/plone/app/theming/browser/mapper.pt#L32">https://github.com/plone/plone.app.theming/blob/integrate-theme-editor/src/plone/app/theming/browser/mapper.pt#L32</a><br></div><div><br></div><div>But in that case the editor is broken, I get an error in ++resource++plone.js in the part corresponding to the tree pattern.</div><div>I guess that's because the tree pattern is part of the plone bundle but as it is also a dependency of filemanager, it is also in thememapper bundle and it makes a conflict.</div><div><br></div><div>Does anybody know what is the right solution?</div><div><br></div><div>Thanks,</div><div><br></div><div>Eric</div></div>