# How to use saveMacro / getMacroData with live macro in the new editor?

**URL:** <https://community.developer.atlassian.com/t/how-to-use-savemacro-getmacrodata-with-live-macro-in-the-new-editor/29161>\
**Category:** Confluence Cloud\
**Tags:** editor, macro\
**Created:** [May 9, 2019, 7:35am UTC](https://community.developer.atlassian.com/t/how-to-use-savemacro-getmacrodata-with-live-macro-in-the-new-editor/29161 "2019-05-09T07:35:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![yongchong.long](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/yongchong.long/32/48711_2.png) [@yongchong.long](https://community.developer.atlassian.com/u/yongchong.long)\
**Post date:** [May 9, 2019, 7:35am UTC](https://community.developer.atlassian.com/t/how-to-use-savemacro-getmacrodata-with-live-macro-in-the-new-editor/29161/1 "2019-05-09T07:35:22Z")

</div>

[A macro needs to have a `bodyType` of `none` to be a live macro in the new editor](https://blog.developer.atlassian.com/introducing-live-macros-to-support-a-new-editing-experience-in-confluence-cloud/) but it seems like [`saveMacro` and / or `getMacroData`](https://developer.atlassian.com/cloud/confluence/jsapi/confluence/) would not work when the `bodyType` is `none`, the macro body will always be empty unless `bodyType` is changed to `rich-text`. Does anyone know if that is the intended behaviour? Is there anyway to use `saveMacro` / `getMacroData` with live macros?

---

<div class="post-metadata">

**Author:** ![yongchong.long](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/yongchong.long/32/48711_2.png) [@yongchong.long](https://community.developer.atlassian.com/u/yongchong.long)\
**Post date:** [May 16, 2019, 3:32am UTC](https://community.developer.atlassian.com/t/how-to-use-savemacro-getmacrodata-with-live-macro-in-the-new-editor/29161/2 "2019-05-16T03:32:47Z")

</div>

So, after asking someone from Atlassian, this behaviour of saveMacro is intended and there is a ticket to somehow mitigate this issue with content properties: [[CONFCLOUD-65437] When changing macro body from bodied to bodiless store the macro body to content property - Create and track feature requests for Atlassian products.](https://jira.atlassian.com/browse/CONFCLOUD-65437)
