Reposting this from https://community.developer.atlassian.com/t/how-to-override-macrobrowser-postpreview-function/49942
Hi all, I am currently modifying the Mermaid Macro Plugin on Confluence Server such that users can input the diagram code directly in the macro browser dialog. I’ve accomplished this part but now the preview does not show the diagram.
I know I need to override the “postPreview” function but I can’t seem to find any examples on how. Would really appreciate any help. Thanks!