# Check if in-place editing is active

**URL:** <https://forum.xwiki.org/t/check-if-in-place-editing-is-active/6885>\
**Category:** Help / Discuss\
**Created:** [May 18, 2020, 1:33pm UTC](https://forum.xwiki.org/t/check-if-in-place-editing-is-active/6885 "2020-05-18T13:33:02Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![mflorea](https://forum.xwiki.org/user_avatar/forum.xwiki.org/mflorea/32/49_2.png) [@mflorea](https://forum.xwiki.org/u/mflorea)\
**Post date:** [May 22, 2020, 10:00am UTC](https://forum.xwiki.org/t/check-if-in-place-editing-is-active/6885/4 "2020-05-22T10:00:58Z")

</div>

I see. The in-place editor retrieves the rendered page content using an URL like this:

```
/xwiki/bin/view/Sandbox/?xpage=rendercontent&outputTitle=true&outputSyntax=annotatedxhtml&language=en&timestamp=1590141362584

```

So you’ll have to rely on one of these request parameters to determine if your macro is being edited in-place. I would check the `outputSyntax` because the `annotatedxhtml` syntax is specific to the WYSIWYG editor. So you could write:

```
#if ($xcontext.action == 'get' || $xcontext.action == 'edit' || $request.outputSyntax == 'annotatedxhtml')

```

Hope this helps,  
Marius

---

_[View the full topic](https://forum.xwiki.org/t/check-if-in-place-editing-is-active/6885)._
