Help

DiscussCategory: Editor configurationsAMP onSave callback parameters
Kaarthik Raja C V asked 1 month ago

Currently when a template is saved the ‘onSave’ callback is fired in JS like onSave: function(jsonFile, htmlFile) .

But when we use AMP for BEE editor with ‘mixed’ workspace, BEE docs say that additional AMPHTML will be received when onSave callback is triggered.

How to modify our onSave: function(jsonFile, htmlFile) callback to receive additional AMPHTML ??

Do we need to add additional parameter to callback? or how should we handle this?

Your Answer