I have the same issue mentioned in these two posts:
- https://theme.co/apex/forums/topic/custom-cornerstone-element-js-not-applied-in-cornerstone-edit-screen/
- https://theme.co/apex/forum/t/cornerstone-builder-preview-not-executing-js-for-custom-shortcode-content/8399/2
My custom element includes an angular component, which behaves correctly when rendered on the “normal” page, but not in the cornerstone designer.
The angular app is setup using wp_register_script & wp_enqueue_script. I read the solution in that first article, which looks promising, but am a bit confused by it - I couldn’t see any evidence of xData.api.map in the pro codebase.
Happy to share a login if it helps.
