Hello,
I’m trying to use the rich-text bodied macros tutorial but I’m confused because I understood from this page that useProductContext()
and view.getContext()
need to transition to the useConfig hook.
So, if I’m right, could you update your tutorial to use useConfig() and update the sample implementation of a rich-text bodied macro in the rich-text-custom-config-macro sample app ?
Thx
Hey @ThibautFAURE
Thanks for picking this up. I’ve passed on your feedback to the team who own the documentation on developer.atlassian.com.
Did you manage to get your app working?
Cheers
Mel
Hello @mpaisley
Thank you very much for contacting the team responsible for the tutorial.
Yes my app works, I used view.getContext()
as in the tutorial because when I use useConfig(), nothing run. I think useConfig()
should evolve to support the specificities of the rich-text bodied macro before deprecating the function view.getContext()
. Currently the view.getContext()
function is essential.
For information, I am trying to add a default text in the body when inserting the rich-text bodied macro but I don’t know how do that, I have created a dedicated ticket : How to write default text in macro rich-text body after the first insert?
Thx