<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[TinyMCE Forum - Removing control from TinyMCE stalls browser]]></title>
		<link>http://www.tinymce.com/forum/viewtopic.php?id=28259</link>
		<description><![CDATA[The most recent posts in Removing control from TinyMCE stalls browser.]]></description>
		<lastBuildDate>Tue, 06 Mar 2012 01:33:03 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Removing control from TinyMCE stalls browser]]></title>
			<link>http://www.tinymce.com/forum/viewtopic.php?pid=99456#p99456</link>
			<description><![CDATA[<p>UPDATE:</p><p>I managed to fix the issue, I couldn&#039;t use jQueries remove() function, because that too stalled the browser, however you can do this.</p><p>$(&#039;.parentDiv&#039;).html(&#039;&#039;);<br />$(&#039;.parentDiv&#039;.remove();</p><p>Just set the parent div&#039;s HTML to be empty and then remove it. I read something about remove() keeping it&#039;s contents available and that was why it froze up.</p>]]></description>
			<author><![CDATA[dummy@example.com (CodeMunkey)]]></author>
			<pubDate>Tue, 06 Mar 2012 01:33:03 +0000</pubDate>
			<guid>http://www.tinymce.com/forum/viewtopic.php?pid=99456#p99456</guid>
		</item>
		<item>
			<title><![CDATA[Re: Removing control from TinyMCE stalls browser]]></title>
			<link>http://www.tinymce.com/forum/viewtopic.php?pid=99454#p99454</link>
			<description><![CDATA[<p>Anyone?</p><p>I&#039;ve now spent days on this and tried a number of different approaches. It still crashes every browser without throwing any js errors.</p>]]></description>
			<author><![CDATA[dummy@example.com (CodeMunkey)]]></author>
			<pubDate>Tue, 06 Mar 2012 00:13:06 +0000</pubDate>
			<guid>http://www.tinymce.com/forum/viewtopic.php?pid=99454#p99454</guid>
		</item>
		<item>
			<title><![CDATA[Removing control from TinyMCE stalls browser]]></title>
			<link>http://www.tinymce.com/forum/viewtopic.php?pid=99322#p99322</link>
			<description><![CDATA[<p>I have a dynamically inserted div, that once it is double clicked turns the child div into a tinyMCE instance. </p><p>This is all good and I have been able to have it all working fine, until it comes time to remove it if needed. The function below is called when the user clicks outside of the tinymce instance, and turns the instance back into the original Div. Before I was just hiding it and then removing the parent div, but it stalled the browser for 1minute or more. </p><p>$(&#039;body&#039;).click(function(){<br />&nbsp; &nbsp; if(currentTinyMce != null){<br />&nbsp; &nbsp; &nbsp; &nbsp; tinyMCE.execCommand(&#039;mceFocus&#039;, false, currentTinyMce);&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; tinyMCE.execCommand(&#039;mceRemoveControl&#039;, false, currentTinyMce);<br />&nbsp; &nbsp; &nbsp; &nbsp; currentTinyMce = null;<br />&nbsp; &nbsp; }<br />});</p><p>currentTinyMce stores the id of the selected div. It seems to be the call to mceRemoveControl that is causing it, and it stalls just the same if I call tinyMce.remove()</p><p>If anyone has run into something similar, some help would be awesome.</p>]]></description>
			<author><![CDATA[dummy@example.com (CodeMunkey)]]></author>
			<pubDate>Fri, 02 Mar 2012 06:01:38 +0000</pubDate>
			<guid>http://www.tinymce.com/forum/viewtopic.php?pid=99322#p99322</guid>
		</item>
	</channel>
</rss>
