<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[[TM] Check editor mode]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">I'm almost sure to remember there is a way in code in the pagebuilder to check if I'm actually in the page puilder / preview mode or not to have so very custom code while programming.</p>
<p dir="auto">Am I dreaming ^^" ? The best would be to detect:</p>
<ul>
<li>Being in the page builder itself, editor mode, to add some cool custom helpers</li>
<li>Being in preview mode, to let some specific helper/debugs</li>
</ul>
<p dir="auto">Thanks a lot,<br />
Best regards,</p>
]]></description><link>https://community.appdrag.com/topic/267/tm-check-editor-mode</link><generator>RSS for Node</generator><lastBuildDate>Sat, 17 Oct 2026 12:38:18 GMT</lastBuildDate><atom:link href="https://community.appdrag.com/topic/267.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 29 Jul 2020 07:38:39 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to [TM] Check editor mode on Thu, 30 Jul 2020 08:04:59 GMT]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">Aaah thanks that's what I was thinking about.<br />
So, I can assume that all my objects will by default inherit from that pagebuilder-edition class as long as I'm viewing them in the page builder is that it ?<br />
Gonna give a try later in the week, thanks <img src="https://community.appdrag.com/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=lfk1vimvd74" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" title=":)" alt="🙂" /></p>
]]></description><link>https://community.appdrag.com/post/981</link><guid isPermaLink="true">https://community.appdrag.com/post/981</guid><dc:creator><![CDATA[Pierre SULPICE]]></dc:creator><pubDate>Thu, 30 Jul 2020 08:04:59 GMT</pubDate></item><item><title><![CDATA[Reply to [TM] Check editor mode on Wed, 29 Jul 2020 10:07:13 GMT]]></title><description><![CDATA[<p dir="auto">Hey Pierre,</p>
<p dir="auto">you are right, there is a CSS rule you can use to display things in the pagebuilder but not in preview/real<br />
Main use for that is when you want to be able to edit in the pagebuilder some sections that should only be displayed after an action (eg: multi steps forms)</p>
<pre><code>    .templateRow {
        display: none
    }
    
    .pagebuilder-edition .templateRow {
        display: block!important
    }
</code></pre>
<p dir="auto">with this CSS rule, your class templateRow will be hidden in frontend (preview/published) but visible and editable in the pagebuilder</p>
]]></description><link>https://community.appdrag.com/post/974</link><guid isPermaLink="true">https://community.appdrag.com/post/974</guid><dc:creator><![CDATA[Joseph Benguira]]></dc:creator><pubDate>Wed, 29 Jul 2020 10:07:13 GMT</pubDate></item></channel></rss>