Can't load libs/cq/ui/rte.js in publisher
Hi, this is a follow up of my comment in http://help-forums.adobe.com/content/adobeforums/en/experience-manager-forum/adobe-experience-manager.topic.html/forum__zba0-i_have_utilpagetha.html.
Basically I have developed a custom component which has a dependency on cq.widgets, which in turn has a dependency on (but doesn't embed) cq.rte. This generates the following tags
<script src="/libs/cq/ui/rte.js" type="text/javascript"></script> <script src="/libs/cq/ui/widgets.js" type="text/javascript"></script>
which fail in the publisher, because /libs/cq/ui/rte.js is closed. I've tried embedding cq.rte in my component, but it didn't work.
I have 2 workarounds which I don't like:
1- Add 2 access control rules in the publisher in /libs
everyone rep:glob=*/rte/*
everyone rep:glob=*/rte
2- Modify /libs/cq/ui/widgets/embed to include cq.rte
None of them seem right.
Finally my problem seems to be the same as mentioned in https://github.com/Adobe-Consulting-Services/acs-aem-tools/issues/12
But this seems like a problem a lot of people would run into. Am I doing something wrong? Any suggestions?
Thx.