Dear Community,
one of my macros needs the page content in storage format to render its output. Everything works fine except in page preview mode (the preview in edit macro dialog is also fine). The getBodyAsString method returns HTML rather than storage format in page preview mode.
conversionContext.getEntity().getBodyAsString() returns HTML only page preview
conversionContext.getEntity().getBodyAsString() returns storage format in all other cases
Is there a way to get the storage format rather than rendered HTML in preview mode?
Thank you
Andreas