<?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>Albertech.net &#187; tinymce</title>
	<atom:link href="http://albertech.net/tag/tinymce/feed/" rel="self" type="application/rss+xml" />
	<link>http://albertech.net</link>
	<description>Tips, Tricks, and Reviews in Linux, Apache, MySQL, PHP</description>
	<lastBuildDate>Fri, 03 Sep 2010 17:40:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>TinyMCE: Fix the removing of empty DIVs</title>
		<link>http://albertech.net/2009/10/tinymce-fix-empty-tag-removal/</link>
		<comments>http://albertech.net/2009/10/tinymce-fix-empty-tag-removal/#comments</comments>
		<pubDate>Fri, 23 Oct 2009 19:23:42 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CMS]]></category>
		<category><![CDATA[empty divs]]></category>
		<category><![CDATA[tinymce]]></category>

		<guid isPermaLink="false">http://albertech.net/?p=306</guid>
		<description><![CDATA[TinyMCE is a great WYSIWYG editor, but sometimes there are cases where it removes HTML tags when you go into the "HTML Source" mode and switch back to the editor.  This is very frustrating to end-users.

By default, TinyMCE will remove a lot of HTML tags including empty ones (such has having a DIV spacer), select options, certain styles, etc. To get around this, you will need to change the option "extended_valid_elements", which is before the setup : function(ed) line. Note: This will allow your users to add in any kind of HTML tags they want. Replace the "extended_valid_elements" line with:.....
]]></description>
			<content:encoded><![CDATA[<p><strong>TinyMCE is a great WYSIWYG editor, but sometimes there are cases where it removes HTML tags when you go into the &#8220;HTML Source&#8221; mode and switch back to the editor.</strong> This is very frustrating to end-users.</p>
<p>By default, TinyMCE will remove a lot of HTML tags including empty ones (such has having a DIV spacer), select options, certain styles, etc. To get around this, you will need to change the option &#8220;extended_valid_elements&#8221;, which is before the <strong>setup : function(ed) line.</strong> Note: This will allow your users to add in any kind of HTML tags they want. Replace the &#8220;extended_valid_elements&#8221; line with:</p>
<p><code>valid_elements : "*[*]",<br />
extended_valid_elements : "*[*]",</code></p>
<p>This will fix the problem with TinyMCE removing tags from the HTML Source mode.</p>
]]></content:encoded>
			<wfw:commentRss>http://albertech.net/2009/10/tinymce-fix-empty-tag-removal/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tiny MCE &#8211; Getting forms to work</title>
		<link>http://albertech.net/2009/04/tiny-mce-getting-forms-to-work/</link>
		<comments>http://albertech.net/2009/04/tiny-mce-getting-forms-to-work/#comments</comments>
		<pubDate>Wed, 01 Apr 2009 22:38:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CMS]]></category>
		<category><![CDATA[forms]]></category>
		<category><![CDATA[tinymce]]></category>

		<guid isPermaLink="false">http://albertech.net/?p=137</guid>
		<description><![CDATA[The Tiny MCE editor has some restrictions on what types of form elements can be used. The form name="[OBJECT"] bug, early /form tags getting added in the form, and certain form elements getting deleted.]]></description>
			<content:encoded><![CDATA[<p>Getting <a href="http://tinymce.moxiecode.com/">Tiny MCE</a> to work with forms is a challenge since it can place end form tags within the page and rename your form elements. Although they do not recommend using forms inside the editor, it can be done by some workarounds. I&#8217;ve put some common issues with forms with Tiny MCE and the workaround.</p>
<p><strong>The &lt;form name=&#8221;[OBJECT"]&gt; bug</strong><br />
For instance, input fields CANNOT be named &#8220;name&#8221; (so use other identifiers for the first and last name) and ids CANNOT be named &#8220;id&#8221;. Otherwise, you will have a form element that will have a field called &#8220;&lt;form name=&#8221;[OBJECT]&#8220;&gt; or &lt;form id=&#8221;[OBJECT]&#8220;&gt;</p>
<p><strong>Early &lt;/form&gt; tags getting added in the form</strong><br />
Another limitation is placing &lt;p&gt; tags within the form. This somehow causes TinyMCE to create &lt;/form&gt; tags after the &lt;/p&gt; field.</p>
<p><strong>If you find certain form elements getting deleted, you will need to use the extended_valid_elements variable in the configuration.</strong> </p>
<p>For instance,<br />
extended_valid_elements : &#8220;form[*],input[*],textarea[cols|rows]&#8220;,</p>
]]></content:encoded>
			<wfw:commentRss>http://albertech.net/2009/04/tiny-mce-getting-forms-to-work/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Custom width icons in TinyMCE</title>
		<link>http://albertech.net/2009/03/custom-width-icons-on-tinymce/</link>
		<comments>http://albertech.net/2009/03/custom-width-icons-on-tinymce/#comments</comments>
		<pubDate>Wed, 04 Mar 2009 00:50:46 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CMS]]></category>
		<category><![CDATA[custom buttons]]></category>
		<category><![CDATA[tinymce]]></category>

		<guid isPermaLink="false">http://albertech.net/?p=97</guid>
		<description><![CDATA[<strong>In order to make icons wider in TinyMCE, you will need to remove the default width on the mceIcon class. </strong>Its forced at 20px, which limits all icons to be square.

<strong>To make the change, go to your ui.css file</strong>
For advanced theme users, its located in themes<strong>/advanced/skils/default/ui.css</strong>

<strong>In Version 3.2.2.1, its line 30:</strong>
<code>.defaultSkin span.mceIcon, .defaultSkin img.mceIcon {display:block; width:20px; height:20px}</code>

The line should be changed to:
<code>.defaultSkin span.mceIcon, .defaultSkin img.mceIcon {display:block; height:20px}
</code>

<strong>Next, you will need to define your custom button when initializing TinyMCE</strong>.

<strong>To make the change, go to your ui.css file</strong>
For advanced theme users, its located in themes<strong>/advanced/skils/default/ui.css</strong>

<strong>In Version 3.2.2.1, its line 30:</strong>
<code>.defaultSkin span.mceIcon, .defaultSkin img.mceIcon {display:block; width:20px; height:20px}</code>]]></description>
			<content:encoded><![CDATA[<p><strong>In order to make icons wider in TinyMCE, you will need to remove the default width on the mceIcon class. </strong>Its forced at 20px, which limits all icons to be square.</p>
<p><strong>To make the change, go to your ui.css file</strong><br />
For advanced theme users, its located in themes<strong>/advanced/skils/default/ui.css</strong></p>
<p><strong>In Version 3.2.2.1, its line 30:</strong><br />
<code>.defaultSkin span.mceIcon, .defaultSkin img.mceIcon {display:block; width:20px; height:20px}</code></p>
<p>The line should be changed to:<br />
<code>.defaultSkin span.mceIcon, .defaultSkin img.mceIcon {display:block; height:20px}<br />
</code></p>
<p><strong>Next, you will need to define your custom button when initializing TinyMCE</strong>.<br />
Using the example:<br />
<code>setup : function(ed) {<br />
// Add a custom button<br />
ed.addButton('mycustombutton', {<br />
title : 'My custom button',<br />
image : 'img/[Filename of custom button]',<br />
onclick : function() {<br />
ed.selection.setContent('&lt;strong&gt;Hello world!&lt;/strong&gt;');<br />
}<br />
});<br />
</code></p>
<p><strong>Add the button to the menubar</strong>, which is in the section defined with &#8220;theme_advanced_buttons&#8230;&#8221;<br />
For my example, I will need to append &#8220;mycustombutton,&#8221; to it</p>
<p><strong>You will then need edit the ui.css file with the wider button</strong>. For simplicity, add it to the end of the ui.css file so you can easily copy it when a new version of Tiny MCE is released. Replace the boldface &#8220;mycustombutton&#8221; with the name of your button. If you button name is mrfancypants, then it will be .defaultSkin a.mce_mrfancypants</p>
<p><code>/* Custom button */<br />
.defaultSkin a.mce_<strong>mycustombutton</strong> {<br />
width: 65px;<br />
}<br />
</code></p>
<p>That should be it! I plan on adding a lot more TinyMCE tutorials since I&#8217;ve decided to change the WYSIWYG component on all my applications to TinyMCE. CSS works really well with TinyMCE and cross platform browsers.</p>
]]></content:encoded>
			<wfw:commentRss>http://albertech.net/2009/03/custom-width-icons-on-tinymce/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
