Assistance requested: Custom macro configuration prevents macro from being inserted

Custom macro configuration (as described here: Add custom configuration to a macro) opens the macro config modal when a macro is inserted into a page and prevents the actual macro from loading. When the modal is closed (via view.close() or view.submit()) the macro is simply not in the page.

This bug can be reproduced using the custom macro config example app.

Steps to reproduce

  • Clone Atlassian’s forge-rich-text-custom-config-macro example app from: forge-rich-text-custom-config-macro
  • Follow the instructions in the example app’s README.txt file to register, build, deploy and install the app.
  • Go to the site where the example app is installed, create a new page and insert either the Rich text macro (with config) UI Kit or Rich text macro (with config) Custom UI macro.
  • Note that the config modal opens automatically and that when this is close the macro is simply not on the page at all.

Given that this issue can be replicated via a default install of the example app, I raised a bug: FRGE-1682. We really need help getting custom macro config working so we can replace our existing UI Kit 1 macro config prior to the deprecation deadline. Assistance would be much appreciated. Cheers

Thanks to @YuweiShen for helping us get to the bottom of this on the bug report.

1 Like