Select the Code-tab from the sidebar, and then JS from the top navigation.
document are unavailable.
There is no restriction to the version of the EcmaScript syntax. You can use any syntax, including ES6, if your browser supports it.
For modification of the exported HTML, there is an instance of cheerio available. It is essentially a clone of jQuery, with mostly identical functions present. See below for examples.
Here's a few examples of what you can do with the provided cheerio-instance:
// Wrap all images in a div $('img').wrap($('<div class="image-wrapper"></div>')); // Add customization attributes for StampReady-integration $('.content-wrapper').attr('data-bgcolor', '#EEEEEE'); $('.column-module').attr('data-link-color', '#444444'); // Make an element deletable in Eloqua $('.spacer').wrap('<span elq-delete="true">');