<?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>Web Design &#38; Build, Web Development, Logo Design &#38; IT Consultancy - n7 Studios &#187; CKEditor</title>
	<atom:link href="http://www.n7studios.co.uk/category/blog/ckeditor/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.n7studios.co.uk</link>
	<description></description>
	<lastBuildDate>Fri, 04 Jun 2010 13:26:42 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>CKEditor Word Count Plugin</title>
		<link>http://www.n7studios.co.uk/2010/03/01/ckeditor-word-count-plugin/</link>
		<comments>http://www.n7studios.co.uk/2010/03/01/ckeditor-word-count-plugin/#comments</comments>
		<pubDate>Mon, 01 Mar 2010 11:11:45 +0000</pubDate>
		<dc:creator>Tim</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[CKEditor]]></category>
		<category><![CDATA[word count]]></category>

		<guid isPermaLink="false">http://www.n7studios.co.uk/?p=496</guid>
		<description><![CDATA[A plugin for CKEditor to display a word count in the bottom right hand corner of any CKEditor instance.  Optional word limit can also be set on the plugin.]]></description>
			<content:encoded><![CDATA[<p>Finally &#8211; a Word Count plugin for CKEditor.  After much searching, and finding nothing, I developed a quick and basic word count plugin for CKEditor.</p>
<p>Tested in Internet Explorer 8, Firefox 3.5, Google Chrome 4, Safari 4</p>
<p><a class="button" title="CKEditor Word Count Demonstration" href="http://www.n7studios.co.uk/sandbox/ckeditor-word-count">Try the demonstration</a></p>
<h1>Installation:</h1>
<ol>
<li>Download the CKEditor Word Count Plugin</li>
<li>Upload the /wordcount folder to your /ckeditor/plugins folder</li>
<li>Edit your CKEditor configuration file (usually /ckeditor/config.js):
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1">CKEDITOR.editorConfig = <span class="kw2">function</span><span class="br0">&#40;</span>config<span class="br0">&#41;</span> <span class="br0">&#123;</span></div>
</li>
<li class="li1">
<div class="de1">config.extraPlugins = <span class="st0">&#8216;wordcount&#8217;</span>;</div>
</li>
<li class="li1">
<div class="de1"><span class="br0">&#125;</span>;</div>
</li>
</ol>
</div>
</li>
<li>For your CKEditor instance, use the following HTML markup (&#8216;content&#8217; can be any element name you wish, so long as the hidden field has its element name in the format &#8216;elementWordCount&#8217;)
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1">&lt;label for=&quot;content&quot;&gt;Content&lt;/label&gt;
</div>
</li>
<li class="li1">
<div class="de1">&lt;textarea class=&quot;ckeditor&quot; name=&quot;content&quot;&gt;&lt;/textarea&gt;
</div>
</li>
<li class="li1">
<div class="de1">&lt;input name=&quot;contentWordCount&quot; type=&quot;hidden&quot; value=&quot;250&quot; /&gt;</div>
</li>
</ol>
</div>
<p>Word Limit: If you don&#8217;t want to display a word limit, don&#8217;t include the hidden input tag, or set its value to zero.</li>
<li>Download jQuery and include it on your web page, between the head tags:
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1">&lt;script src=&quot;jquery/jquery.1.4.min.js&quot; type=&quot;text/javascript&quot;&gt;&lt;!&#8211;mce:0&#8211;&gt;&lt;/script&gt;</div>
</li>
</ol>
</div>
</li>
</ol>
<h1><strong>Known Bugs / Issues:</strong></h1>
<ol>
<li>The word count can be a few words out &#8211; this appears to happen between paragraph tags.</li>
<li>Pasting large chunks of copy that exceeds the word limit sometimes causes issues, whereby the additional content isn&#8217;t always removed.</li>
<li>I&#8217;ve only tested this using the HTML markup specified above (it should work in other methods &#8211; please let me know if it does / doesn&#8217;t)</li>
<li>Multiple instances of the CKEditor on a single page may cause issues with word counts.</li>
</ol>
<p>I&#8217;m hoping to keep this plugin updated and publish some fixes within the next few weeks &#8211; so if there are any other issues, please leave a comment to let me know.</p>
<h1><strong>Download:</strong></h1>
<p><a class="button" title="CKEditor Word Count Demonstration" href="http://www.n7studios.co.uk/downloads/ckeditor-word-count-full.zip">Download Plugin, CKEditor, jQuery and example web page.</a> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.n7studios.co.uk/2010/03/01/ckeditor-word-count-plugin/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
