Suppose you got something like thisL
<p:inplace id="basic" widgetVar="myWidget">
<p:inputText value="Edit Me" />
</p:inplace>
You can check if the inplace was opened with the help of the widgetVar
and jQuery , like this
jQuery(myWidget.content).is(":visible")
Or you can check it with the :visible
selector and the id of the inplace :
append _display
to your inplace element id to check if the editor wasn't open yet
append _content
to your inplace element id to check if the editor was already open
jQuery("#basic_display").is(":visible")
jQuery("#basic_content").is(":visible")
you can check it in browser console in the showcase Primefaces Inplace