How to access the state of PrimeFaces p:inplace component in Javascript?
I need to check if the component is in state inline or not, in order to call toggle()function when needed… AFAIK toggle() can only change the state and not set the state to desired value?
Suppose you got something like thisL
You can check if the inplace was opened with the help of the
widgetVarand jQuery , like thisOr you can check it with the
:visibleselector and the id of the inplace :append
_displayto your inplace element id to check if the editor wasn’t open yetappend
_contentto your inplace element id to check if the editor was already openyou can check it in browser console in the showcase Primefaces Inplace