Note that there are some explanatory texts on larger screens.

plurals
  1. POTinyMCE not working with chrome when I dynamically setContent
    text
    copied!<p>I have a site that I put:</p> <pre><code>&lt;body onload="ajaxLoad()" &gt; </code></pre> <p>I have a javascript function that then inserts data from my database into the text editor by using the <code>setContent</code> javascript method of the textarea. It seems fine in Firefox and IE but in Chrome sometimes nothing shows up. There is no error, just a blank editor.</p> <p>In the body section I have:</p> <pre><code> &lt;textarea id="elm1" name="elm1" rows="40" cols="60" style="width: 100%"&gt; &lt;/textarea&gt; </code></pre> <p>In the head section I have:</p> <pre><code>function ajaxLoad() { var ed = tinyMCE.get('elm1'); ed.setProgressState(1); // Show progress window.setTimeout(function() { ed.setProgressState(0); // Hide progress ed.setContent('&lt;p style="text-align: center;"&gt;&lt;strong&gt;&lt;br /&gt;&lt;span style="font-size: small;"&gt;General Manager&amp;#39;s Corner&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p style="text-align: center;"&gt;August&amp;nbsp;2009&lt;/p&gt;&lt;p&gt;It&amp;rsquo;s been 15&lt;sup&gt;th&lt;/sup&gt; and so have a Steak Night (Saturday, 15&lt;sup&gt;th&lt;/sup&gt;) and a shore Dinner planned (Saturday, 22&lt;sup&gt;nd&lt;/sup&gt;) this month. urday, September 5&lt;sup&gt;th&lt;/sup&gt;. e a can&amp;rsquo;t missed evening, shas extended it one additional week. The last clinic will be the week of August 11&lt;sup&gt;th&lt;/sup&gt;. &lt;/p&gt;&lt;p&gt;&amp;nbsp;Alt (Tuesday through Thursday) &lt;/p&gt;&lt;p&gt;&amp;nbsp;I wouClub.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;strong&gt;&lt;/strong&gt;&lt;/p&gt;'); }, 1); } </code></pre> <p>I am not sure if its some of the formatting that Chrome is rejecting but it seems like if TinyMCE can parse it in one browser, it should be able to do it in any browser, so I am confused.</p> <p>Any suggestions?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload