<?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[Making content editable]]></title><description><![CDATA[<p dir="auto">Hello,<br />
trying to make a div's content editable (paragraph/span).</p>
<p dir="auto">Each time, editing a block and going into a source code option to add «contentEditable="true" » it is deleted.<br />
Could you help or suggest a different solution?</p>
<p dir="auto">This is for a sake of a website presenting typefaces, and this option would be a good feature to have.</p>
<p dir="auto">Thanks!</p>
]]></description><link>https://laythemeforum.com/topic/7482/making-content-editable</link><generator>RSS for Node</generator><lastBuildDate>Wed, 19 Aug 2026 08:08:37 GMT</lastBuildDate><atom:link href="https://laythemeforum.com/topic/7482.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 19 Dec 2021 02:13:20 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Making content editable on Mon, 20 Dec 2021 21:52:11 GMT]]></title><description><![CDATA[<p dir="auto">No worries <a class="plugin-mentions-user plugin-mentions-a" href="/user/polczynski">@<bdi>polczynski</bdi></a> Merry Christmas!!! 🎄</p>
]]></description><link>https://laythemeforum.com/post/27807</link><guid isPermaLink="true">https://laythemeforum.com/post/27807</guid><dc:creator><![CDATA[Richard]]></dc:creator><pubDate>Mon, 20 Dec 2021 21:52:11 GMT</pubDate></item><item><title><![CDATA[Reply to Making content editable on Mon, 20 Dec 2021 12:39:02 GMT]]></title><description><![CDATA[<p dir="auto">That works perfectly.<br />
Thank you so much!</p>
<p dir="auto">Best!</p>
]]></description><link>https://laythemeforum.com/post/27794</link><guid isPermaLink="true">https://laythemeforum.com/post/27794</guid><dc:creator><![CDATA[polczynski]]></dc:creator><pubDate>Mon, 20 Dec 2021 12:39:02 GMT</pubDate></item><item><title><![CDATA[Reply to Making content editable on Sun, 19 Dec 2021 23:15:21 GMT]]></title><description><![CDATA[<h3>Dear <a class="plugin-mentions-user plugin-mentions-a" href="/user/polczynski">@<bdi>polczynski</bdi></a></h3>
<p dir="auto">Try this! 🌝</p>
<p dir="auto">I have created a Text Element in the Gridder:<br />
<img src="/assets/uploads/files/1639954509383-screen-shot-2021-12-20-at-11.54.42-am-resized.png" alt="Screen Shot 2021-12-20 at 11.54.42 AM.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">With an ID - "editable"  (it could be anything you wish) :<br />
<img src="/assets/uploads/files/1639954557279-screen-shot-2021-12-20-at-11.55.48-am-resized.png" alt="Screen Shot 2021-12-20 at 11.55.48 AM.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Then Using the following jQuery: <a href="https://stackoverflow.com/questions/3655156/html5-contenteditable-with-jquery" target="_blank" rel="noopener noreferrer nofollow ugc">https://stackoverflow.com/questions/3655156/html5-contenteditable-with-jquery</a></p>
<pre><code>jQuery('#editable *').attr('contenteditable','true');
</code></pre>
<p dir="auto">Now i can edit it:<br />
<img src="/assets/uploads/files/1639955573963-screen-shot-2021-12-20-at-11.57.23-am-resized.png" alt="Screen Shot 2021-12-20 at 11.57.23 AM.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">I would suggest wrapping it in a new page event and inserting it into  &gt; Lay Options &gt; Custom CSS &amp; HTML &gt; Custom &lt;Head&gt; Content:</p>
<pre><code>&lt;script&gt;
    window.laytheme.on("newpageshown", function(layoutObj, type, obj){
 jQuery('#editable *').attr('contenteditable','true');

    });
&lt;/script&gt;
</code></pre>
<blockquote>
<p dir="auto"><a href="https://laytheme.com/documentation.html#custom-javascript" target="_blank" rel="noopener noreferrer nofollow ugc">https://laytheme.com/documentation.html#custom-javascript</a></p>
</blockquote>
<p dir="auto"><img src="/assets/uploads/files/1639955695837-screen-shot-2021-12-20-at-12.14.07-pm-resized.png" alt="Screen Shot 2021-12-20 at 12.14.07 PM.png" class=" img-fluid img-markdown" /></p>
<hr />
<h5>Hope this helps <a class="plugin-mentions-user plugin-mentions-a" href="/user/polczynski">@<bdi>polczynski</bdi></a> &amp; best wishes 🌻</h5>
<h5>Richard</h5>
]]></description><link>https://laythemeforum.com/post/27776</link><guid isPermaLink="true">https://laythemeforum.com/post/27776</guid><dc:creator><![CDATA[Richard]]></dc:creator><pubDate>Sun, 19 Dec 2021 23:15:21 GMT</pubDate></item></channel></rss>