<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[TinyMCE Forum - Changing default link target for link editor]]></title>
		<link>http://www.tinymce.com/forum/viewtopic.php?id=28991</link>
		<description><![CDATA[The most recent posts in Changing default link target for link editor.]]></description>
		<lastBuildDate>Thu, 14 Jun 2012 18:05:08 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Changing default link target for link editor]]></title>
			<link>http://www.tinymce.com/forum/viewtopic.php?pid=101826#p101826</link>
			<description><![CDATA[<p>Argh I was hoping it wouldnt come to that. Thanks, though.</p>]]></description>
			<author><![CDATA[dummy@example.com (freise29)]]></author>
			<pubDate>Thu, 14 Jun 2012 18:05:08 +0000</pubDate>
			<guid>http://www.tinymce.com/forum/viewtopic.php?pid=101826#p101826</guid>
		</item>
		<item>
			<title><![CDATA[Re: Changing default link target for link editor]]></title>
			<link>http://www.tinymce.com/forum/viewtopic.php?pid=101806#p101806</link>
			<description><![CDATA[<div class="quotebox"><cite>freise29 wrote:</cite><blockquote><p>We use a wrapper for tinyMCE, so we dont actually need to manually change the tinyMCE code itself (for upgrades). So I was wondering if there is any way to set the default target for the link editor, without having to change tinyMCE code (whether it be passing a callback or something in the tinyMCE.init, or what have you).</p><p>I dont want to force users to use a particular target, but I would just like for the default for all links to be opened in a new tab.</p></blockquote></div><p>As far as I know, the only way to do this is to hack the editor.</p><p>If you want to do this, go to the &quot;themes/advanced/js&quot; directory and edit the file &quot;link.js&quot;.</p><p>Somewhere near line #145 you will see these three lines:</p><div class="codebox"><pre><code>    lst.options[lst.options.length] = new Option(tinyMCEPopup.getLang(&#039;not_set&#039;), &#039;&#039;);
    lst.options[lst.options.length] = new Option(tinyMCEPopup.getLang(&#039;advanced_dlg.link_target_same&#039;), &#039;_self&#039;);
    lst.options[lst.options.length] = new Option(tinyMCEPopup.getLang(&#039;advanced_dlg.link_target_blank&#039;), &#039;_blank&#039;);</code></pre></div><p>Re-arrange them any way you like. To make links open in a new tab/window, simply move the &quot;target_blank&quot; line (#3) up to the top (make it the #1 spot).</p><p>Hope this helps....</p>]]></description>
			<author><![CDATA[dummy@example.com (Krupski)]]></author>
			<pubDate>Wed, 13 Jun 2012 16:30:18 +0000</pubDate>
			<guid>http://www.tinymce.com/forum/viewtopic.php?pid=101806#p101806</guid>
		</item>
		<item>
			<title><![CDATA[Re: Changing default link target for link editor]]></title>
			<link>http://www.tinymce.com/forum/viewtopic.php?pid=101766#p101766</link>
			<description><![CDATA[<p>GOOD</p>]]></description>
			<author><![CDATA[dummy@example.com (lili50)]]></author>
			<pubDate>Tue, 12 Jun 2012 03:03:08 +0000</pubDate>
			<guid>http://www.tinymce.com/forum/viewtopic.php?pid=101766#p101766</guid>
		</item>
		<item>
			<title><![CDATA[Changing default link target for link editor]]></title>
			<link>http://www.tinymce.com/forum/viewtopic.php?pid=101764#p101764</link>
			<description><![CDATA[<p>We use a wrapper for tinyMCE, so we dont actually need to manually change the tinyMCE code itself (for upgrades). So I was wondering if there is any way to set the default target for the link editor, without having to change tinyMCE code (whether it be passing a callback or something in the tinyMCE.init, or what have you).</p><p>I dont want to force users to use a particular target, but I would just like for the default for all links to be opened in a new tab.</p>]]></description>
			<author><![CDATA[dummy@example.com (freise29)]]></author>
			<pubDate>Mon, 11 Jun 2012 21:43:01 +0000</pubDate>
			<guid>http://www.tinymce.com/forum/viewtopic.php?pid=101764#p101764</guid>
		</item>
	</channel>
</rss>
