<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[TinyMCE Forum - paste_text_sticky / paste text clicked by default]]></title>
		<link>http://www.tinymce.com/forum/viewtopic.php?id=21088</link>
		<description><![CDATA[The most recent posts in paste_text_sticky / paste text clicked by default.]]></description>
		<lastBuildDate>Sat, 17 Apr 2010 20:06:41 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: paste_text_sticky / paste text clicked by default]]></title>
			<link>http://www.tinymce.com/forum/viewtopic.php?pid=73290#p73290</link>
			<description><![CDATA[<p>paste_retain_style_properties works good for me with pasteword. Just put everything in it you don&#039;t want to get stripped out.</p>]]></description>
			<author><![CDATA[dummy@example.com (wuschba)]]></author>
			<pubDate>Sat, 17 Apr 2010 20:06:41 +0000</pubDate>
			<guid>http://www.tinymce.com/forum/viewtopic.php?pid=73290#p73290</guid>
		</item>
		<item>
			<title><![CDATA[Re: paste_text_sticky / paste text clicked by default]]></title>
			<link>http://www.tinymce.com/forum/viewtopic.php?pid=73179#p73179</link>
			<description><![CDATA[<p>I&#039;ve tested this a bit more - tried re-insalling, using the above example initialise code and clearing my browser cache.</p><p>In IE6, 7 and 8 - If I click the pasteword dialog and paste there first it doesn&#039;t strip it as cleanly as if just go CTRL V. </p><p>It seems that with the latest paste plugin using tiny mce 3.3.2 the pasteworld dialog icon should be turned off completely.</p><p>For my usage it doesn&#039;t really matter. What I intend to do is not show the pasteword icon. I&#039;ll automatically activate and press the pastetext icon so most clients who use &#039;ctrl V&#039; will just get everything stripped out. </p><p>If I or a more careful client need to use the pasteword features (so it doesn&#039;t strip everything out) I can just click the pastetext to de-activate it. Then go CTRL-V</p>]]></description>
			<author><![CDATA[dummy@example.com (mattysk)]]></author>
			<pubDate>Fri, 16 Apr 2010 09:10:44 +0000</pubDate>
			<guid>http://www.tinymce.com/forum/viewtopic.php?pid=73179#p73179</guid>
		</item>
		<item>
			<title><![CDATA[Re: paste_text_sticky / paste text clicked by default]]></title>
			<link>http://www.tinymce.com/forum/viewtopic.php?pid=73138#p73138</link>
			<description><![CDATA[<p>I&#039;ve tested this so far on IE7, IE8 and FF 3.59</p><p>The sripping it down to text works well on all browser, only slight issue would be that lists can stripped to the same line.</p><p>I have noticed another strange issue though. on ie7 and ie8 if you actually use the pasteword icon so it brings up the dialog box, it doesn&#039;t strip everything out. For it is still trying to add styles such as &quot;&lt;span style=&quot;font&quot; ... etc</p><p>This seems to happen even if I don&#039;t do anything with paste sticky or use wuschba&#039;s code. </p><p>Could someone else check this on their install? does using the pasteword dialog do something different to paste V? (in IE)</p><p>I guess this wouldn&#039;t matter on a normal install as you could create it so that it doesn&#039;t show the icon. Does seem strange though as in the new paste plugin&#039;s documentation it uses the pasteword icon:</p><p>tinyMCE.init({<br />&nbsp; &nbsp; &nbsp; &nbsp; theme : &quot;advanced&quot;,<br />&nbsp; &nbsp; &nbsp; &nbsp; mode : &quot;textareas&quot;,<br />&nbsp; &nbsp; &nbsp; &nbsp; plugins : &quot;paste&quot;,<br />&nbsp; &nbsp; &nbsp; &nbsp; theme_advanced_buttons3_add : &quot;pastetext,pasteword,selectall&quot;,<br />&nbsp; &nbsp; &nbsp; &nbsp; paste_auto_cleanup_on_paste : true,<br />&nbsp; &nbsp; &nbsp; &nbsp; paste_preprocess : function(pl, o) {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Content string containing the HTML from the clipboard<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; alert(o.content);<br />&nbsp; &nbsp; &nbsp; &nbsp; },<br />&nbsp; &nbsp; &nbsp; &nbsp; paste_postprocess : function(pl, o) {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Content DOM node containing the DOM structure of the clipboard<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; alert(o.node.innerHTML);<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />});</p>]]></description>
			<author><![CDATA[dummy@example.com (mattysk)]]></author>
			<pubDate>Thu, 15 Apr 2010 16:25:51 +0000</pubDate>
			<guid>http://www.tinymce.com/forum/viewtopic.php?pid=73138#p73138</guid>
		</item>
		<item>
			<title><![CDATA[Re: paste_text_sticky / paste text clicked by default]]></title>
			<link>http://www.tinymce.com/forum/viewtopic.php?pid=73090#p73090</link>
			<description><![CDATA[<p>Yes we changed it too. Good modification! Paste Text should be enabled by default.</p>]]></description>
			<author><![CDATA[dummy@example.com (Moxifan)]]></author>
			<pubDate>Thu, 15 Apr 2010 08:13:11 +0000</pubDate>
			<guid>http://www.tinymce.com/forum/viewtopic.php?pid=73090#p73090</guid>
		</item>
		<item>
			<title><![CDATA[Re: paste_text_sticky / paste text clicked by default]]></title>
			<link>http://www.tinymce.com/forum/viewtopic.php?pid=73087#p73087</link>
			<description><![CDATA[<div class="quotebox"><blockquote><p>None of our clients ever press the icon so this helps.</p></blockquote></div><p>Thats what I noticed as well: Everyone seems to write the text in Word and then Copy&amp;Paste it into tinyMce, which always ends up in a mess. The new paste-plugin is much better in that, but setting the default to &quot;plain text&quot; is the best way I think.</p>]]></description>
			<author><![CDATA[dummy@example.com (wuschba)]]></author>
			<pubDate>Thu, 15 Apr 2010 06:56:35 +0000</pubDate>
			<guid>http://www.tinymce.com/forum/viewtopic.php?pid=73087#p73087</guid>
		</item>
		<item>
			<title><![CDATA[Re: paste_text_sticky / paste text clicked by default]]></title>
			<link>http://www.tinymce.com/forum/viewtopic.php?pid=73056#p73056</link>
			<description><![CDATA[<p>Hi Wuschba</p><p>Thanks for you code - my initial tests indicate this works! - I&#039;m going to try and not get too excited until I&#039;ve done some more testing in various browsers. I&#039;ll do this tomorrow with fresh eyes!</p><p>It might not be documented, but its there and there is even the option to keep the icon pressed. So I&#039;m guessing there is no problem with it. </p><p>There isn&#039;t a huge amount of documentation on any of the latest version of the paste plugin (<a href="http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/paste">http://wiki.moxiecode.com/index.php/Tin &#133; gins/paste</a>)</p><p>I&#039;ll post back tomorrow with my findings - fingers crossed as we&#039;ve been trying for ages to make the&nbsp; CTRL V default to plain text. None of our clients ever press the icon so this helps. I do think that the latest paste plugin handles paste from word really well but in most cases its easier just to make clients start from a clean slate.</p><p>If they are inclined to check the code works OK they can still use the paste from word icon.</p>]]></description>
			<author><![CDATA[dummy@example.com (mattysk)]]></author>
			<pubDate>Wed, 14 Apr 2010 16:29:51 +0000</pubDate>
			<guid>http://www.tinymce.com/forum/viewtopic.php?pid=73056#p73056</guid>
		</item>
		<item>
			<title><![CDATA[Re: paste_text_sticky / paste text clicked by default]]></title>
			<link>http://www.tinymce.com/forum/viewtopic.php?pid=73053#p73053</link>
			<description><![CDATA[<p>Analysing the src of the paste-plugin this seems to be working:</p><div class="codebox"><pre><code>tinyMCE.init({
...
setup : function(ed) 
        {    ed.onInit.add(function(ed)
            {    ed.pasteAsPlainText = true;
                ed.controlManager.setActive(&quot;pastetext&quot;, true);
            });
           }
});</code></pre></div><p>tinymce.Editor.pasteAsPlainText isn&#039;t documented, so is it good to use it?</p>]]></description>
			<author><![CDATA[dummy@example.com (wuschba)]]></author>
			<pubDate>Wed, 14 Apr 2010 15:46:55 +0000</pubDate>
			<guid>http://www.tinymce.com/forum/viewtopic.php?pid=73053#p73053</guid>
		</item>
		<item>
			<title><![CDATA[Re: paste_text_sticky / paste text clicked by default]]></title>
			<link>http://www.tinymce.com/forum/viewtopic.php?pid=73049#p73049</link>
			<description><![CDATA[<p>I need this as well - how can it be done?</p><p>I tried something like:</p><div class="codebox"><pre><code>tinyMCE.init({
...
});

for( edId in tinyMCE.editors ) 
{    tinyMCE.editors[edId].execCommand(&quot;pastetext&quot;);
}</code></pre></div><p>But the array tinyMCE.editors seems to be empty at this point. So I tried:</p><div class="codebox"><pre><code>tinyMCE.init({
...
setup : function(ed) 
        {    ed.onInit.add(function(ed)
            {    ed.execCommand(&quot;pastetext&quot;);
            });
           }
});</code></pre></div><p>But this seems to have no effect at all. Then I tried:</p><div class="codebox"><pre><code>tinyMCE.init({
...
setup : function(ed) 
        {    ed.onInit.add(function(ed)
            {    ed.controlManager.setActive(&quot;pastetext&quot;, true);
            });
           }
});</code></pre></div><p>... which shows the pastetext-button as &quot;pressed&quot;, but has no effect on the behavior of paste.</p><p>Any other ideas?</p>]]></description>
			<author><![CDATA[dummy@example.com (wuschba)]]></author>
			<pubDate>Wed, 14 Apr 2010 14:49:05 +0000</pubDate>
			<guid>http://www.tinymce.com/forum/viewtopic.php?pid=73049#p73049</guid>
		</item>
		<item>
			<title><![CDATA[Re: paste_text_sticky / paste text clicked by default]]></title>
			<link>http://www.tinymce.com/forum/viewtopic.php?pid=72990#p72990</link>
			<description><![CDATA[<p>Thanks for the reply but that&#039;s not quite what this does.</p><p>Setting &quot;paste_text_sticky : true&quot; means that once you&#039;ve clicked the &quot;paste as text&quot; icon this remains pressed until you press it again.</p><p>I&#039;d like to be able to set this as the default so it doesn&#039;t need to be clicked.</p><p>Any ideas?</p>]]></description>
			<author><![CDATA[dummy@example.com (mattysk)]]></author>
			<pubDate>Tue, 13 Apr 2010 14:35:40 +0000</pubDate>
			<guid>http://www.tinymce.com/forum/viewtopic.php?pid=72990#p72990</guid>
		</item>
		<item>
			<title><![CDATA[Re: paste_text_sticky / paste text clicked by default]]></title>
			<link>http://www.tinymce.com/forum/viewtopic.php?pid=72988#p72988</link>
			<description><![CDATA[<p>Isn&#039;t that already a functionality? &quot;paste_text_sticky : true&quot; in your init (just guessing, never tried it)?</p>]]></description>
			<author><![CDATA[dummy@example.com (Chrazy)]]></author>
			<pubDate>Tue, 13 Apr 2010 12:58:41 +0000</pubDate>
			<guid>http://www.tinymce.com/forum/viewtopic.php?pid=72988#p72988</guid>
		</item>
		<item>
			<title><![CDATA[paste_text_sticky / paste text clicked by default]]></title>
			<link>http://www.tinymce.com/forum/viewtopic.php?pid=72986#p72986</link>
			<description><![CDATA[<p>Hi All</p><p>I&#039;ve been searching around for a while now and would appreciate any help with this</p><p>&quot;paste_text_sticky&quot; is great as once I click the pastetext icon, when ever I paste anything in&nbsp; it removes all the formating. If I want formatting I can click the paste word button.</p><p>I&#039;d like to be able to do this by default so that the pastetext icon doesn&#039;t need clicking in the first place.</p><p>Any ideas on the best way to do this? I was thinking I could maybe simulate the icon being pressed but feel there must be a simpler way.</p><p>Either that or is there a way to use pastetext rather than pasteword as its default when pasteing directly.</p><p>Many thanks for any help received!!</p><p>M</p>]]></description>
			<author><![CDATA[dummy@example.com (mattysk)]]></author>
			<pubDate>Tue, 13 Apr 2010 12:31:44 +0000</pubDate>
			<guid>http://www.tinymce.com/forum/viewtopic.php?pid=72986#p72986</guid>
		</item>
	</channel>
</rss>
