I need to render an html macro on clicking 'insert' or 'save' button. Is it possible to render a macro from client side? I read somewhere that we have to call the preview action on 'insert or save button click'. But I am not able to access those buttons from my js file. My macro web resource is inside the <head> element of the iframe. Any help will be appreciated.