getContext in custom editor is empty

Hi.

For my custom macro editor i need to get a hold of the current page id. However, when i run

AP.context.getContext(callback)

the callback returns an empty object.

The same call works just fine when used in the preview editor mode, but not in my custom macro editor. Why is the context missing and is there another way to get a hold of the page id?

Hi @TerjeRstum,

This is a known issue. Please see [CONFCLOUD-70815] AP.content.getContext() returns an empty object in dynamic content macro editors - Create and track feature requests for Atlassian products..

Regards,
Dugald