TouchUI toggling the display between wcmmodes
Does anyone know how the parsys components hides the "Drag components here" text when toggling between preview and edit mode in TouchUI? The page nor the iframe is refreshing.
I am using sightly and TouchUI for my components and there are elements I want removed which switching views. For example lets look at Feike Visser's sightly tutorial.
<div data-sly-test="${wcmmode.edit}">Show this only in edit mode to the author</div>Since sightly is server side rendered this content would be displayed or hidden base on what "wcmmode" you are on when you land on the page.
What we seem to need is a way capture that event like the parsys does and hide and display the content accordingly.