<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>The web stuff journal &#187; Silverstripe CMS</title>
	<atom:link href="http:///blog/category/silverstripe-cms/feed/" rel="self" type="application/rss+xml" />
	<link>/blog</link>
	<description></description>
	<lastBuildDate>Sat, 15 Aug 2009 19:20:35 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>SilverStripe TinyMCE Media / Embed Movies How-to</title>
		<link>/blog/silverstripe-tinymce-media-embed-movies-how-to/2008/12/03/</link>
		<comments>/blog/silverstripe-tinymce-media-embed-movies-how-to/2008/12/03/#comments</comments>
		<pubDate>Wed, 03 Dec 2008 16:06:37 +0000</pubDate>
		<dc:creator>Stefan</dc:creator>
				<category><![CDATA[Silverstripe CMS]]></category>

		<guid isPermaLink="false">/blog/?p=67</guid>
		<description><![CDATA[Phew! I&#8217;ve just spent the best part of 3 hours figuring out how to add in media support for TinyMCE and SilverStripe CMS. I hope the following code helps others and if there&#8217;s any questions i&#8217;ll do my best to help.
Firstly we need to add the button to the TinyMCE. SilverStripe is setup to do [...]]]></description>
			<content:encoded><![CDATA[<p>Phew! I&#8217;ve just spent the best part of 3 hours figuring out how to add in media support for TinyMCE and SilverStripe CMS. I hope the following code helps others and if there&#8217;s any questions i&#8217;ll do my best to help.</p>
<p>Firstly we need to add the button to the TinyMCE. SilverStripe is setup to do this by linking in from a seperate file.</p>
<p>Edit /saphire/forms/HtmlEditorField.php<br />
new HtmlEditorField_button(&#8221;mceMedia&#8221;,&#8221;media:media&#8221;,_t(&#8217;HtmlEditorField.MEDIA&#8217;, &#8220;Insert media&#8221;)),</p>
<p>Next we need to enable the backend TinyMCE code itself.</p>
<p>Edit /cms/javascript/tinymce.template.js<br />
mode : &#8220;textareas&#8221;,<br />
plugins : &#8220;contextmenu,table,emotions,media,paste&#8221;,</p>
<p>Now go to /admin/?flush=1 to flush the cache.</p>
<p>That&#8217;s it, you should have a media button on your TinyMCE toolbar which pops up and gives option to add in Flash, Quicktime, WMV etc.</p>
]]></content:encoded>
			<wfw:commentRss>/blog/silverstripe-tinymce-media-embed-movies-how-to/2008/12/03/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

