Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.

Undo Manager disable

Avatar

Level 2

Hi All,

 

We have an issue on some of our publisher where we get few scripts attached in our along with our pages which are related to Undo Manager which restricts it from rendering.

<script type="text/javascript">
(function() {
var cfg = {"enabled":true,"maxUndoSteps":20,"persistenceMode":"step","whitelist":["foundation/components/text"...... REAL LONG LIST HERE]};
cfg.pagePath = "path_to_the_page";
if (CQClientLibraryManager.channelCB() != "touch") {
cfg.enabled = true;
CQ.undo.UndoManager.initialize(cfg);
CQ.Ext.onReady(function() {
CQ.undo.UndoManager.detectCachedPage((new Date()).getTime());
});
}
})();
CQ.WCM.launchSidekick("/content/uxportal/MyUnitPages/default", {
propsDialog: "",
locked: false
});
</script>

 

Below is the error we get when we try to render this page:

NaziyaP_0-1644832656788.png

 

Same page and setup works fine in some other publishers , we have already compared undo manager configurations in both publishers they are same.

We have also tried to disable(restarted pub as well) still same script is coming attached when page is being rendered.

NaziyaP_1-1644832841180.png

 

Please suggest how can i get this script removed from pages so that they render fine.

 

Thanks in advance.

0 Replies