<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Adding a TinyMCE button to WordPress</title>
	<atom:link href="http://brettterpstra.com/adding-a-tinymce-button/feed/" rel="self" type="application/rss+xml" />
	<link>http://brettterpstra.com/adding-a-tinymce-button/</link>
	<description>Elegant solutions to complex problems.</description>
	<lastBuildDate>Thu, 09 Feb 2012 18:48:49 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: Brett</title>
		<link>http://brettterpstra.com/adding-a-tinymce-button/#comment-15997</link>
		<dc:creator>Brett</dc:creator>
		<pubDate>Fri, 01 Apr 2011 13:14:46 +0000</pubDate>
		<guid isPermaLink="false">http://brettterpstra.com/?p=378#comment-15997</guid>
		<description>&lt;p&gt;Yep, just change the line in editor.js to this:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt; ed.execCommand(&#039;mceInsertContent&#039;, false, &#039;[gview file=&quot;&#039;+m[1]+&#039;&quot;]&#039;);
&lt;/code&gt;&lt;/pre&gt;
</description>
		<content:encoded><![CDATA[<p>Yep, just change the line in editor.js to this:</p>

<pre><code> ed.execCommand('mceInsertContent', false, '[gview file="'+m[1]+'"]');
</code></pre>]]></content:encoded>
	</item>
	<item>
		<title>By: Matt Hull</title>
		<link>http://brettterpstra.com/adding-a-tinymce-button/#comment-15936</link>
		<dc:creator>Matt Hull</dc:creator>
		<pubDate>Tue, 29 Mar 2011 16:20:10 +0000</pubDate>
		<guid isPermaLink="false">http://brettterpstra.com/?p=378#comment-15936</guid>
		<description>&lt;p&gt;Actually, looking at this I have managed to add a pdf button to the tinymce, but I would like to attach it to this plugin: http://wordpress.org/extend/plugins/google-document-embedder/ in order to write the shortcode around the link like this: [gview file=&quot;http://url.to/file.pdf&quot;] is that possible? how could that be done?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Actually, looking at this I have managed to add a pdf button to the tinymce, but I would like to attach it to this plugin: <a href="http://wordpress.org/extend/plugins/google-document-embedder/" rel="nofollow">http://wordpress.org/extend/plugins/google-document-embedder/</a> in order to write the shortcode around the link like this: [gview file=“http://url.to/file.pdf”] is that possible? how could that be done?</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Matt Hull</title>
		<link>http://brettterpstra.com/adding-a-tinymce-button/#comment-15935</link>
		<dc:creator>Matt Hull</dc:creator>
		<pubDate>Tue, 29 Mar 2011 15:29:11 +0000</pubDate>
		<guid isPermaLink="false">http://brettterpstra.com/?p=378#comment-15935</guid>
		<description>&lt;p&gt;Do you think a similiar tinymce button could be added for a google pdf viewer script like this one: http://davismetro.com/gde/usage/ or indeed a shortcode like this: http://wpsnipp.com/index.php/functions-php/enable-google-docs-shortcode-for-pdf-documents/&lt;/p&gt;

&lt;p&gt;How could this be done?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Do you think a similiar tinymce button could be added for a google pdf viewer script like this one: <a href="http://davismetro.com/gde/usage/" rel="nofollow">http://davismetro.com/gde/usage/</a> or indeed a shortcode like this: <a href="http://wpsnipp.com/index.php/functions-php/enable-google-docs-shortcode-for-pdf-documents/" rel="nofollow">http://wpsnipp.com/index.php/functions-php/enable-google-docs-shortcode-for-pdf-documents/</a></p>

<p>How could this be done?</p>]]></content:encoded>
	</item>
	<item>
		<title>By: James</title>
		<link>http://brettterpstra.com/adding-a-tinymce-button/#comment-14525</link>
		<dc:creator>James</dc:creator>
		<pubDate>Wed, 02 Mar 2011 11:27:24 +0000</pubDate>
		<guid isPermaLink="false">http://brettterpstra.com/?p=378#comment-14525</guid>
		<description>&lt;p&gt;Thanks for the guide, helped me a lot. I had to modify the JavaScript slightly to work with my own shortcode I had created. Thanks again!&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Thanks for the guide, helped me a lot. I had to modify the JavaScript slightly to work with my own shortcode I had created. Thanks again!</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Stan</title>
		<link>http://brettterpstra.com/adding-a-tinymce-button/#comment-14488</link>
		<dc:creator>Stan</dc:creator>
		<pubDate>Wed, 02 Mar 2011 01:44:13 +0000</pubDate>
		<guid isPermaLink="false">http://brettterpstra.com/?p=378#comment-14488</guid>
		<description>&lt;p&gt;You saved my day! THANKS A LOT!!!!&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>You saved my day! THANKS A LOT!!!!</p>]]></content:encoded>
	</item>
	<item>
		<title>By: « defreshen</title>
		<link>http://brettterpstra.com/adding-a-tinymce-button/#comment-13451</link>
		<dc:creator>« defreshen</dc:creator>
		<pubDate>Sat, 19 Feb 2011 12:05:24 +0000</pubDate>
		<guid isPermaLink="false">http://brettterpstra.com/?p=378#comment-13451</guid>
		<description>&lt;p&gt;[...] Источник: http://brettterpstra.com/adding-a-tinymce-button/ [...]&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>[…] Источник: <a href="http://brettterpstra.com/adding-a-tinymce-button/" rel="nofollow">http://brettterpstra.com/adding-a-tinymce-button/</a> […]</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Aaron W. Herd</title>
		<link>http://brettterpstra.com/adding-a-tinymce-button/#comment-13395</link>
		<dc:creator>Aaron W. Herd</dc:creator>
		<pubDate>Fri, 18 Feb 2011 19:42:08 +0000</pubDate>
		<guid isPermaLink="false">http://brettterpstra.com/?p=378#comment-13395</guid>
		<description>&lt;p&gt;This has been incredibly helpful. I was having the hardest time getting a custom TinyMCE button to work, but I was able to figure it out from your example. Thanks!&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>This has been incredibly helpful. I was having the hardest time getting a custom TinyMCE button to work, but I was able to figure it out from your example. Thanks!</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Killer hacks to enhance WordPress editor - CatsWhoCode.com</title>
		<link>http://brettterpstra.com/adding-a-tinymce-button/#comment-11495</link>
		<dc:creator>Killer hacks to enhance WordPress editor - CatsWhoCode.com</dc:creator>
		<pubDate>Mon, 31 Jan 2011 15:26:52 +0000</pubDate>
		<guid isPermaLink="false">http://brettterpstra.com/?p=378#comment-11495</guid>
		<description>&lt;p&gt;[...] return $plugin_array; } &#187; Source: http://brettterpstra.com/adding-a-tinymce-button/Set different editor stylesheets for different post typesCutom post types are definitely one of the [...]&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>[…] return $plugin_array; } » Source: <a href="http://brettterpstra.com/adding-a-tinymce-button/Set" rel="nofollow">http://brettterpstra.com/adding-a-tinymce-button/Set</a> different editor stylesheets for different post typesCutom post types are definitely one of the […]</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Dennis</title>
		<link>http://brettterpstra.com/adding-a-tinymce-button/#comment-6906</link>
		<dc:creator>Dennis</dc:creator>
		<pubDate>Fri, 03 Dec 2010 13:22:23 +0000</pubDate>
		<guid isPermaLink="false">http://brettterpstra.com/?p=378#comment-6906</guid>
		<description>&lt;p&gt;Thanks a lot for sharing this, it was very useful for me - exactly what I was looking for :) Keep it up!&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Thanks a lot for sharing this, it was very useful for me — exactly what I was looking for :) Keep it up!</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Frankie Jarrett</title>
		<link>http://brettterpstra.com/adding-a-tinymce-button/#comment-6258</link>
		<dc:creator>Frankie Jarrett</dc:creator>
		<pubDate>Thu, 18 Nov 2010 09:15:47 +0000</pubDate>
		<guid isPermaLink="false">http://brettterpstra.com/?p=378#comment-6258</guid>
		<description>&lt;p&gt;Excellent tut! I plan to use something like this in my next theme :) Thanks, Brett&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Excellent tut! I plan to use something like this in my next theme :) Thanks, Brett</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Dion GeBorde</title>
		<link>http://brettterpstra.com/adding-a-tinymce-button/#comment-5492</link>
		<dc:creator>Dion GeBorde</dc:creator>
		<pubDate>Fri, 05 Nov 2010 20:55:15 +0000</pubDate>
		<guid isPermaLink="false">http://brettterpstra.com/?p=378#comment-5492</guid>
		<description>&lt;p&gt;Wow, thanks for the phenomenally fast response.&lt;/p&gt;

&lt;p&gt;Seeing your response, going to the pages you recommended, and re-reading what you wrote in the post really helped me to gain a better understanding of what I missed. I was thinking you were skipping a necessary step about creating buttons from shortcodes. I&#039;ll restate what I understand now, just to make sure I&#039;ve got it:&lt;/p&gt;

&lt;p&gt;You were saying that rather than teach us in this post how to create a quicktag button in the HTML editor -- because we could just type in what we needed directly with a shortcode -- you were going to focus on creating a button in the Visual Editor, because that&#039;s what the technologically challenged most need. Right? OK, think I got it. Thanks.&lt;/p&gt;

&lt;p&gt;With regard to TinyMCE Advanced, going through the instructions, I couldn&#039;t see where it specifically allows me to add my own, but as you mentioned, it probably won&#039;t interfere, either.&lt;/p&gt;

&lt;p&gt;Thanks again, Brett.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Wow, thanks for the phenomenally fast response.</p>

<p>Seeing your response, going to the pages you recommended, and re-reading what you wrote in the post really helped me to gain a better understanding of what I missed. I was thinking you were skipping a necessary step about creating buttons from shortcodes. I’ll restate what I understand now, just to make sure I’ve got it:</p>

<p>You were saying that rather than teach us in this post how to create a quicktag button in the HTML editor — because we could just type in what we needed directly with a shortcode — you were going to focus on creating a button in the Visual Editor, because that’s what the technologically challenged most need. Right? OK, think I got it. Thanks.</p>

<p>With regard to TinyMCE Advanced, going through the instructions, I couldn’t see where it specifically allows me to add my own, but as you mentioned, it probably won’t interfere, either.</p>

<p>Thanks again, Brett.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Brett</title>
		<link>http://brettterpstra.com/adding-a-tinymce-button/#comment-5463</link>
		<dc:creator>Brett</dc:creator>
		<pubDate>Fri, 05 Nov 2010 15:26:24 +0000</pubDate>
		<guid isPermaLink="false">http://brettterpstra.com/?p=378#comment-5463</guid>
		<description>&lt;p&gt;For QuickTags I just found &lt;a href=&quot;http://bueltge.de/wp-addquicktags-de-plugin/120/&quot; rel=&quot;nofollow&quot;&gt;AddQuickTag&lt;/a&gt; and set it up to make Markdown links. Worked like a charm in WP 3.0.1. Just FYI.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>For QuickTags I just found <a href="http://bueltge.de/wp-addquicktags-de-plugin/120/" rel="nofollow">AddQuickTag</a> and set it up to make Markdown links. Worked like a charm in WP 3.0.1. Just FYI.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Brett</title>
		<link>http://brettterpstra.com/adding-a-tinymce-button/#comment-5456</link>
		<dc:creator>Brett</dc:creator>
		<pubDate>Fri, 05 Nov 2010 13:08:14 +0000</pubDate>
		<guid isPermaLink="false">http://brettterpstra.com/?p=378#comment-5456</guid>
		<description>&lt;p&gt;You might check this out for QuickTags, though I have no idea how it plays with WP 3:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://rmnl.net/wp-addquicktag-plugin-for-adding-quicktags/&quot; rel=&quot;nofollow&quot;&gt;http://rmnl.net/wp-addquicktag-plugin-for-adding-quicktags/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Also, just google for &quot;Adding quicktag buttons to wordpress&quot; and you&#039;ll find it. It&#039;s a pretty simple javascript function you can just keep extending, but you&#039;ll want to do it through external hooks, so skip the tutorials that tell you to modify files inside of wp-include.&lt;/p&gt;

&lt;p&gt;I haven&#039;t used TinyMCE Advanced for a long time, I can&#039;t remember if it has the ability to add its own buttons or not. Either way, it shouldn&#039;t conflict. The method here is a standard method of extending the editor and should play nicely with any plugin which implements that method.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>You might check this out for QuickTags, though I have no idea how it plays with WP 3:</p>

<p><a href="http://rmnl.net/wp-addquicktag-plugin-for-adding-quicktags/" rel="nofollow">http://rmnl.net/wp-addquicktag-plugin-for-adding-quicktags/</a></p>

<p>Also, just google for “Adding quicktag buttons to wordpress” and you’ll find it. It’s a pretty simple javascript function you can just keep extending, but you’ll want to do it through external hooks, so skip the tutorials that tell you to modify files inside of wp-include.</p>

<p>I haven’t used TinyMCE Advanced for a long time, I can’t remember if it has the ability to add its own buttons or not. Either way, it shouldn’t conflict. The method here is a standard method of extending the editor and should play nicely with any plugin which implements that method.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Dion GeBorde</title>
		<link>http://brettterpstra.com/adding-a-tinymce-button/#comment-5455</link>
		<dc:creator>Dion GeBorde</dc:creator>
		<pubDate>Fri, 05 Nov 2010 12:55:30 +0000</pubDate>
		<guid isPermaLink="false">http://brettterpstra.com/?p=378#comment-5455</guid>
		<description>&lt;p&gt;Hey Brett, really dig this nearly-complete treatment, because I&#039;m looking to do just this kind of thing in the next few days.&lt;/p&gt;

&lt;p&gt;I&#039;m a complete php/js newbie who&#039;s been cobbling together my programming skills in dancing through the WP codex and blogs like yours in just the past week or so, though I&#039;ve seen precious few that detail it like this. So, I&#039;ve got a couple questions/clarifications/requests, if you&#039;re not sleeping and not tied up with other projects. ;-)&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;You mentioned above that you essentially skipped the &quot;Adding a button to the &quot;quick tags&quot; in the HTML editor&quot; part because it&#039;s a cinch. I&#039;ve never heard of this. Any tips where I can find out more?&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;I&#039;m using the plugin TinyMCE Advanced. Does this support -- or complicate -- what you&#039;ve presented here? I&#039;ve only gotten exposure to TinyMCE in the past few days, so don&#039;t know if it&#039;s best to use a plugin or if there&#039;s a better way to do it.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Thanks man.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hey Brett, really dig this nearly-complete treatment, because I’m looking to do just this kind of thing in the next few days.</p>

<p>I’m a complete php/js newbie who’s been cobbling together my programming skills in dancing through the WP codex and blogs like yours in just the past week or so, though I’ve seen precious few that detail it like this. So, I’ve got a couple questions/clarifications/requests, if you’re not sleeping and not tied up with other projects. ;-)</p>

<ol>
<li><p>You mentioned above that you essentially skipped the “Adding a button to the “quick tags” in the HTML editor” part because it’s a cinch. I’ve never heard of this. Any tips where I can find out more?</p></li>
<li><p>I’m using the plugin TinyMCE Advanced. Does this support — or complicate — what you’ve presented here? I’ve only gotten exposure to TinyMCE in the past few days, so don’t know if it’s best to use a plugin or if there’s a better way to do it.</p></li>
</ol>

<p>Thanks man.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: mattonomics</title>
		<link>http://brettterpstra.com/adding-a-tinymce-button/#comment-5124</link>
		<dc:creator>mattonomics</dc:creator>
		<pubDate>Sun, 31 Oct 2010 00:19:48 +0000</pubDate>
		<guid isPermaLink="false">http://brettterpstra.com/?p=378#comment-5124</guid>
		<description>&lt;p&gt;Thank you SO MUCH! This kind of info needs to be in the WP Codex.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Thank you SO MUCH! This kind of info needs to be in the WP Codex.</p>]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic (Feed is rejected)
Page Caching using disk: enhanced
Database Caching 3/17 queries in 0.243 seconds using xcache
Object Caching 632/647 objects using xcache
Content Delivery Network via cdn2.brettterpstra.com

Served from: brettterpstra.com @ 2012-02-09 18:44:48 -->
