<?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>VinylFox &#187; ExtJS Plugins</title>
	<atom:link href="http://www.vinylfox.com/tag/plugins/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.vinylfox.com</link>
	<description>The Playground of VinylFox (Shea Frederick)</description>
	<lastBuildDate>Thu, 29 Jul 2010 16:37:06 +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>Plugin set for HtmlEditor gets a CharacterMap</title>
		<link>http://www.vinylfox.com/plugin-set-for-htmleditor-gets-a-charactermap/</link>
		<comments>http://www.vinylfox.com/plugin-set-for-htmleditor-gets-a-charactermap/#comments</comments>
		<pubDate>Tue, 28 Jul 2009 14:26:10 +0000</pubDate>
		<dc:creator>Shea Frederick</dc:creator>
				<category><![CDATA[ExtJS]]></category>
		<category><![CDATA[ExtJS Plugins]]></category>
		<category><![CDATA[HtmlEditor]]></category>

		<guid isPermaLink="false">http://www.vinylfox.com/?p=410</guid>
		<description><![CDATA[Over time I will be adding more and more of these HtmlEditor plugins in an effort to turn the ExtJS HtmlEditor into a lean mean fighting machine! My goal is to give the ExtJS HtmlEditor all the power of those other rich text editors but without the overhead. The obvious next choice for a button [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.vinylfox.com/wp-content/uploads/2009/07/charmap-300x170.png" alt="charmap" title="charmap" width="300" height="170" class="alignleft size-full wp-image-413" align="left" style="margin: 10px 10px 10px 0; border: solid 1px #000;"/>Over time I will be adding more and more of these HtmlEditor plugins in an effort to turn the ExtJS HtmlEditor into a lean mean fighting machine! My goal is to give the ExtJS HtmlEditor all the power of those other rich text editors but without the overhead.</p>
<p>The obvious next choice for a button was to add a character map which allows the user to insert special characters.</p>
<h2>How it Works</h2>
<p>The character map is just a <em>DataView</em> in a window which allows selection of each item. By double clicking on an item, a single character can be inserted or we can select a single item or multiple items using the ctrl or shift keys and click the &#8216;Insert&#8217; button.</p>
<h2>Using it</h2>
<p>Just like the <a href="http://www.vinylfox.com/plugin-set-for-additional-extjs-htmleditor-buttons/">other plugins in this set</a>, it can be added to the plugins array of your HtmlEditor.</p>
<p><textarea class="js" cols="100" name="code">{<br />
	xtype: &#8216;htmleditor&#8217;,<br />
	&#8230;,<br />
	plugins: [new Ext.ux.form.HtmlEditor.SpecialCharacters()],<br />
	&#8230;<br />
}</textarea></p>
<p>I also created a couple of configs that allow you to specify which characters you want displayed, along with any additional characters. Both of the following configs use the numeric portion of the ASCII HTML Character Code only &#8211; for example, to use the Copyright symbol, which is <strong>&#38;#169;</strong> we would just specify <strong>169</strong> in the config.</p>
<p>If we wanted to only display a subset of characters, we would set the value of the <em>charRange </em>config to an array containing the starting and ending points of the characters we wanted.</p>
<p><textarea class="js" cols="100" name="code">{<br />
	xtype: &#8216;htmleditor&#8217;,<br />
	&#8230;,<br />
	plugins: [new Ext.ux.form.HtmlEditor.SpecialCharacters({<br />
		charRange: [192,256] // Accented characters only<br />
	})],<br />
	&#8230;<br />
}</textarea></p>
<p>There is also the option to include additional characters using the <em>specialChars </em>config, providing an array of the characters.</p>
<p><textarea class="js" cols="100" name="code">{<br />
	xtype: &#8216;htmleditor&#8217;,<br />
	&#8230;,<br />
	plugins: [new Ext.ux.form.HtmlEditor.SpecialCharacters({<br />
		specialChars: [42,43,45,47,60,61,62] // Math operator characters<br />
	})],<br />
	&#8230;<br />
}</textarea></p>
<h2>Enjoy!</h2>
<p>As always, please enjoy this plugin and feel free to use it wherever you want. Feedback is very appreciated.</p>
<p>Source available on Google Code: <a href="http://code.google.com/p/ext-ux-htmleditor-plugins/">http://code.google.com/p/ext-ux-htmleditor-plugins/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.vinylfox.com/plugin-set-for-htmleditor-gets-a-charactermap/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
