<?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>eli geske &#187; JQuery</title>
	<atom:link href="http://eligeske.com/category/jquery/feed/" rel="self" type="application/rss+xml" />
	<link>http://eligeske.com</link>
	<description>Good information for the geeky kind.</description>
	<lastBuildDate>Tue, 15 May 2012 00:20:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Customizing the CKEditor toolbar with jQuery</title>
		<link>http://eligeske.com/jquery/customizing-the-ckeditor-toolbar-with-jquery/</link>
		<comments>http://eligeske.com/jquery/customizing-the-ckeditor-toolbar-with-jquery/#comments</comments>
		<pubDate>Sun, 18 Mar 2012 17:40:25 +0000</pubDate>
		<dc:creator>eligeske</dc:creator>
				<category><![CDATA[JQuery]]></category>
		<category><![CDATA[ckeditor]]></category>
		<category><![CDATA[customize toolbar]]></category>
		<category><![CDATA[Jquery]]></category>
		<category><![CDATA[toolbar]]></category>

		<guid isPermaLink="false">http://eligeske.com/?p=636</guid>
		<description><![CDATA[Customize the CKEditor toolbar while using the jQuery method explained.  ]]></description>
			<content:encoded><![CDATA[<p>In this post we will go over editing the CKEditor toolbar through jQuery.  If you don&#8217;t have ckeditor setup and working using jQuery please read this post first: <a title="Starting CKEditor with jQuery" href="http://eligeske.com/jquery/starting-ckeditor-with-jquery/">Starting CKEditor with jQuery.</a> This will get you up to speed with where we are at.</p>
<p>Here is what we will accomplish:</p>
<ol>
<li>Create a custom toolbar utilizing already existing toolbar items provided by ckeditor.</li>
<li>Create a config object to assign the toolbar to.</li>
<li>Initiate the ckeditor.</li>
</ol>
<p>Right now we are using $(&#8216;#editor_area&#8217;).ckeditor(); to initiate the library and show the WYSIWIG.  So all we need to do is a create a toolbar layout and a config object and pass it in when we initiate.</p>
<p><strong>FIRST</strong>: <span style="text-decoration: underline;">CREATE TOOLBAR</span></p>
<p>There are a couple different ways to create a toolbar in ckeditor. By this I mean, using an array of arrays or an array of objects with arrays inside them.  I will show you both ways and explain what CKEditor has to say about which one to use.</p>
<p><strong>1. Simple Toolbar using Array of Arrays.</strong></p>
<div id="attachment_643" class="wp-caption alignnone" style="width: 345px"><a href="http://eligeske.com/wp-content/uploads/2012/03/ckeditor_toolbar_with_arrays.jpg"><img class="size-full wp-image-643 " title="ckeditor_toolbar_with_arrays" src="http://eligeske.com/wp-content/uploads/2012/03/ckeditor_toolbar_with_arrays.jpg" alt="ckeditor customizing the toolbar " width="335" height="73" /></a><p class="wp-caption-text">What your toolbar should look like from the code below.</p></div>
<p>&nbsp;</p>
<div id="wpshdo_1" class="wp-synhighlighter-outer"><div id="wpshdt_1" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_1"></a><a id="wpshat_1" class="wp-synhighlighter-title" href="#codesyntax_1"  onClick="javascript:wpsh_toggleBlock(1)" title="Click to show/hide code block">Source code</a></td><td align="right"><a href="#codesyntax_1" onClick="javascript:wpsh_code(1)" title="Show code only"><img border="0" style="border: 0 none" src="http://eligeske.com/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_1" onClick="javascript:wpsh_print(1)" title="Print code"><img border="0" style="border: 0 none" src="http://eligeske.com/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://eligeske.com/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://eligeske.com/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_1" class="wp-synhighlighter-inner" style="display: block;"><pre class="javascript" style="font-family:monospace;">$<span class="br0">&#40;</span><span class="kw2">function</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="br0">&#123;</span>
        <span class="co1">// 1. Create your own toolbar</span>
        <span class="kw2">var</span> myToolbar <span class="sy0">=</span> <span class="br0">&#91;</span>
            <span class="br0">&#91;</span><span class="st0">'Bold'</span><span class="br0">&#93;</span><span class="sy0">,</span>
            <span class="br0">&#91;</span><span class="st0">'Styles'</span><span class="br0">&#93;</span><span class="sy0">,</span>
            <span class="br0">&#91;</span><span class="st0">'Save'</span><span class="sy0">,</span><span class="st0">'-'</span><span class="sy0">,</span><span class="st0">'SelectAll'</span><span class="br0">&#93;</span>
        <span class="br0">&#93;</span><span class="sy0">;</span>                                    
&nbsp;
        <span class="co1">// 2. Create a config var to hold your toolbar</span>
        <span class="kw2">var</span> config <span class="sy0">=</span>
        <span class="br0">&#123;</span>
            toolbar_mySimpleToolbar<span class="sy0">:</span> myToolbar<span class="sy0">,</span>
            toolbar<span class="sy0">:</span> <span class="st0">'mySimpleToolbar'</span>        
        <span class="br0">&#125;</span><span class="sy0">;</span>
&nbsp;
        <span class="co1">// 3. change the textarea into an editor using your config and toolbar</span>
        $<span class="br0">&#40;</span><span class="st0">'#editor_area'</span><span class="br0">&#41;</span>.<span class="me1">ckeditor</span><span class="br0">&#40;</span>config<span class="br0">&#41;</span><span class="sy0">;</span>                
<span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span></pre></div></div>
<p>Let me explain what is going on here.</p>
<p>The variable myToolbar is an array, the name of the variable is totally arbitrary.  Inside the array are more arrays. Now each one of those individual arrays turns into a toolbar group. See how the toolbar item &#8220;Bold&#8221; is all by itself but the &#8220;Save&#8221; and &#8220;Select All&#8221; items are grouped, but with a nice vertical line in the middle. Can you guess how that was created? Ok, hard one&#8230;.. &#8220;-&#8221;  Using that anywhere in your array will create a separator between your toolbar objects.  I&#8217;ll explain that config object and how we name the toolbar in a little bit.</p>
<p>Now let&#8217;s make that same toolbar using the Array of objects with Arrays.</p>
<p><strong>2</strong><strong>. Simple Toolbar using Array of Objects w/ Arrays.</strong></p>
<div id="wpshdo_2" class="wp-synhighlighter-outer"><div id="wpshdt_2" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_2"></a><a id="wpshat_2" class="wp-synhighlighter-title" href="#codesyntax_2"  onClick="javascript:wpsh_toggleBlock(2)" title="Click to show/hide code block">Source code</a></td><td align="right"><a href="#codesyntax_2" onClick="javascript:wpsh_code(2)" title="Show code only"><img border="0" style="border: 0 none" src="http://eligeske.com/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_2" onClick="javascript:wpsh_print(2)" title="Print code"><img border="0" style="border: 0 none" src="http://eligeske.com/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://eligeske.com/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://eligeske.com/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_2" class="wp-synhighlighter-inner" style="display: block;"><pre class="javascript" style="font-family:monospace;"> $<span class="br0">&#40;</span><span class="kw2">function</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="br0">&#123;</span>
        <span class="co1">// 1. Create your own toolbar</span>
        <span class="kw2">var</span> myToolbar <span class="sy0">=</span> <span class="br0">&#91;</span>
            <span class="br0">&#123;</span> <span class="kw3">name</span><span class="sy0">:</span> <span class="st0">'bold it'</span><span class="sy0">,</span> items <span class="sy0">:</span> <span class="br0">&#91;</span><span class="st0">'Bold'</span><span class="br0">&#93;</span> <span class="br0">&#125;</span><span class="sy0">,</span>
            <span class="br0">&#123;</span> <span class="kw3">name</span><span class="sy0">:</span> <span class="st0">'styles it'</span><span class="sy0">,</span> items <span class="sy0">:</span> <span class="br0">&#91;</span> <span class="st0">'Styles'</span><span class="br0">&#93;</span> <span class="br0">&#125;</span><span class="sy0">,</span>
            <span class="br0">&#123;</span> <span class="kw3">name</span><span class="sy0">:</span> <span class="st0">'save and stuff'</span><span class="sy0">,</span> items <span class="sy0">:</span> <span class="br0">&#91;</span><span class="st0">'Save'</span><span class="sy0">,</span><span class="st0">'-'</span><span class="sy0">,</span><span class="st0">'SelectAll'</span><span class="br0">&#93;</span> <span class="br0">&#125;</span><span class="sy0">,</span>
        <span class="br0">&#93;</span><span class="sy0">;</span>                                    
&nbsp;
        <span class="co1">// 2. Create a config var to hold your toolbar</span>
        <span class="kw2">var</span> config <span class="sy0">=</span>
        <span class="br0">&#123;</span>
            toolbar_mySimpleToolbar<span class="sy0">:</span> myToolbar<span class="sy0">,</span>
            toolbar<span class="sy0">:</span> <span class="st0">'mySimpleToolbar'</span>        
        <span class="br0">&#125;</span><span class="sy0">;</span>
&nbsp;
        <span class="co1">// 3. change the textarea into an editor using your config and toolbar</span>
        $<span class="br0">&#40;</span><span class="st0">'#editor_area'</span><span class="br0">&#41;</span>.<span class="me1">ckeditor</span><span class="br0">&#40;</span>config<span class="br0">&#41;</span><span class="sy0">;</span>                
<span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span></pre></div></div>
<p>Your toolbar should look exactly the same as before. But notice that it is created with objects this time. This is the recommended way by CKEditor.  The objects have a name for that toolbar group and the items as an array.  The name allows screen readers and other software the ability to determine where they are at and assist for better usage.  This also is a much better JSON format.</p>
<p><strong> Let&#8217;s take a look at that config object:</strong></p>
<p>The config object is what we pass into the intiator to set the options for the editor. Like height and width. Try it out for yourself.</p>
<div id="wpshdo_3" class="wp-synhighlighter-outer"><div id="wpshdt_3" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_3"></a><a id="wpshat_3" class="wp-synhighlighter-title" href="#codesyntax_3"  onClick="javascript:wpsh_toggleBlock(3)" title="Click to show/hide code block">Source code</a></td><td align="right"><a href="#codesyntax_3" onClick="javascript:wpsh_code(3)" title="Show code only"><img border="0" style="border: 0 none" src="http://eligeske.com/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_3" onClick="javascript:wpsh_print(3)" title="Print code"><img border="0" style="border: 0 none" src="http://eligeske.com/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://eligeske.com/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://eligeske.com/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_3" class="wp-synhighlighter-inner" style="display: block;"><pre class="javascript" style="font-family:monospace;"> <span class="kw2">var</span> config <span class="sy0">=</span> <span class="br0">&#123;</span> height<span class="sy0">:</span> 250<span class="sy0">,</span> width<span class="sy0">:</span> 390 <span class="br0">&#125;</span><span class="sy0">;</span></pre></div></div>
<p>&nbsp;</p>
<p>There are two default toolbars that are already created by CKEditor, Full and Basic.  And you choose which one you want to use by setting the &#8220;toolbar&#8221; property in the config.</p>
<div id="wpshdo_4" class="wp-synhighlighter-outer"><div id="wpshdt_4" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_4"></a><a id="wpshat_4" class="wp-synhighlighter-title" href="#codesyntax_4"  onClick="javascript:wpsh_toggleBlock(4)" title="Click to show/hide code block">Source code</a></td><td align="right"><a href="#codesyntax_4" onClick="javascript:wpsh_code(4)" title="Show code only"><img border="0" style="border: 0 none" src="http://eligeske.com/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_4" onClick="javascript:wpsh_print(4)" title="Print code"><img border="0" style="border: 0 none" src="http://eligeske.com/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://eligeske.com/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://eligeske.com/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_4" class="wp-synhighlighter-inner" style="display: block;"><pre class="javascript" style="font-family:monospace;"><span class="kw2">var</span> config <span class="sy0">=</span> <span class="br0">&#123;</span> toolbar<span class="sy0">:</span> <span class="st0">'Basic'</span><span class="br0">&#125;</span><span class="sy0">;</span></pre></div></div>
<p>&nbsp;</p>
<p>Now if you wanted to make your own toolbar and assign it you would have to create a new toolbar in the config.  CKEditor is smart. You create your own toolbar by setting the property &#8220;toolbar_{{Your Toolbar Name}}&#8221;.  Then you would assign your toolbar with &#8220;toolbar: Your Toolbar Name&#8221;.<br />
<div id="wpshdo_5" class="wp-synhighlighter-outer"><div id="wpshdt_5" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_5"></a><a id="wpshat_5" class="wp-synhighlighter-title" href="#codesyntax_5"  onClick="javascript:wpsh_toggleBlock(5)" title="Click to show/hide code block">Source code</a></td><td align="right"><a href="#codesyntax_5" onClick="javascript:wpsh_code(5)" title="Show code only"><img border="0" style="border: 0 none" src="http://eligeske.com/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_5" onClick="javascript:wpsh_print(5)" title="Print code"><img border="0" style="border: 0 none" src="http://eligeske.com/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://eligeske.com/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://eligeske.com/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_5" class="wp-synhighlighter-inner" style="display: block;"><pre class="javascript" style="font-family:monospace;"><span class="kw2">var</span> config <span class="sy0">=</span><span class="br0">&#123;</span>
 toolbar_mySimpleToolbar<span class="sy0">:</span> myToolbar<span class="sy0">,</span>
 toolbar<span class="sy0">:</span> <span class="st0">'mySimpleToolbar'</span>
<span class="br0">&#125;</span><span class="sy0">;</span></pre></div></div><br />
<strong>There ya have it.  </strong>Customizing the toolbar using jQuery.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://eligeske.com/jquery/customizing-the-ckeditor-toolbar-with-jquery/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Starting CKEditor with jQuery</title>
		<link>http://eligeske.com/jquery/starting-ckeditor-with-jquery/</link>
		<comments>http://eligeske.com/jquery/starting-ckeditor-with-jquery/#comments</comments>
		<pubDate>Sun, 18 Mar 2012 16:38:05 +0000</pubDate>
		<dc:creator>eligeske</dc:creator>
				<category><![CDATA[JQuery]]></category>
		<category><![CDATA[ckeditor]]></category>
		<category><![CDATA[jquery and ckeditor]]></category>
		<category><![CDATA[starting with ckeditor]]></category>

		<guid isPermaLink="false">http://eligeske.com/?p=616</guid>
		<description><![CDATA[CKEditor is an extremely easy to use WYSIWIG that can be used with your favorite javascript library, jQuery.  Here is how you can quickly start using CKEditor with a little jQuery.]]></description>
			<content:encoded><![CDATA[<div id="attachment_617" class="wp-caption alignright" style="width: 221px"><a href="http://eligeske.com/wp-content/uploads/2012/03/ckeditor_file_structure.jpg"><img class="size-full wp-image-617  " style="border: 0pt none;" title="ckeditor_file_structure" src="http://eligeske.com/wp-content/uploads/2012/03/ckeditor_file_structure.jpg" alt="ckeditor file structure with jquery" width="211" height="363" /></a><p class="wp-caption-text">CKEditor File Structure w/ jQuery</p></div>
<p>CKEditor is the most popular open source WYSIWYG editor for web development. What makes it so great in my opinion is that you do NOT have to use server side script to manage it. But if that’s your thing, don’t worry, it has those options too.</p>
<p>To start off let’s just make a quick file structure by creating in index.html, a js folder that will contain your ckeditor files and jquery library file.</p>
<p>The js/ckeditor folder contains the, latest at the time of this post, library downloaded from the ckeditor website.  I have removed all of the unnecessary files in implementing ckeditor with jquery.</p>
<p>1.    Download latest jquery library to your file structure.<br />
2.    Download latest ckeditor library to your file structure.<br />
3.    Remove all unneeded ckeditor files.</p>
<p>&nbsp;</p>
<p>Now that you have your file structure set up, we can start looking into the html file. Here is what we will be doing:</p>
<p>1.    Include all the javascript libraries and adapter script.<br />
2.    Create a textarea html element inside a form tag. (Creating it in a form tag allows the save button to submit the form when you click it.)<br />
3.    Write the code to initiate the ckeditor.</p>
<p>As you can see below you add all the &lt;script&gt; tags to include the jquery library, ckeditor library, and the ckeditor adapter for jquery.</p>
<div id="wpshdo_6" class="wp-synhighlighter-outer"><div id="wpshdt_6" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_6"></a><a id="wpshat_6" class="wp-synhighlighter-title" href="#codesyntax_6"  onClick="javascript:wpsh_toggleBlock(6)" title="Click to show/hide code block">Source code</a></td><td align="right"><a href="#codesyntax_6" onClick="javascript:wpsh_code(6)" title="Show code only"><img border="0" style="border: 0 none" src="http://eligeske.com/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_6" onClick="javascript:wpsh_print(6)" title="Print code"><img border="0" style="border: 0 none" src="http://eligeske.com/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://eligeske.com/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://eligeske.com/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_6" class="wp-synhighlighter-inner" style="display: block;"><pre class="html4strict" style="font-family:monospace;"><span class="sc0">&lt;!DOCTYPE HTML&gt;</span>
<span class="sc2">&lt;<a href="http://december.com/html/4/element/html.html"><span class="kw2">html</span></a>&gt;</span>
    <span class="sc2">&lt;<a href="http://december.com/html/4/element/head.html"><span class="kw2">head</span></a>&gt;</span>
&nbsp;
        <span class="sc2">&lt;<a href="http://december.com/html/4/element/title.html"><span class="kw2">title</span></a>&gt;</span>CKEditor with jQuery<span class="sc2">&lt;<span class="sy0">/</span><a href="http://december.com/html/4/element/title.html"><span class="kw2">title</span></a>&gt;</span>
        <span class="sc-1">&lt;!-- JQUERY LIBRARY --&gt;</span>
        <span class="sc2">&lt;<a href="http://december.com/html/4/element/script.html"><span class="kw2">script</span></a> <span class="kw3">type</span><span class="sy0">=</span><span class="st0">&quot;text/javascript&quot;</span> <span class="kw3">src</span><span class="sy0">=</span><span class="st0">&quot;js/jquery/jquery.min.js&quot;</span>&gt;&lt;<span class="sy0">/</span><a href="http://december.com/html/4/element/script.html"><span class="kw2">script</span></a>&gt;</span>
        <span class="sc-1">&lt;!-- CKEDITOR LIBRARY --&gt;</span>
        <span class="sc2">&lt;<a href="http://december.com/html/4/element/script.html"><span class="kw2">script</span></a> <span class="kw3">type</span><span class="sy0">=</span><span class="st0">&quot;text/javascript&quot;</span> <span class="kw3">src</span><span class="sy0">=</span><span class="st0">&quot;js/ckeditor/ckeditor.js&quot;</span>&gt;&lt;<span class="sy0">/</span><a href="http://december.com/html/4/element/script.html"><span class="kw2">script</span></a>&gt;</span>
        <span class="sc-1">&lt;!-- CKEDITOR JQUERY ADAPTOR --&gt;</span>
        <span class="sc2">&lt;<a href="http://december.com/html/4/element/script.html"><span class="kw2">script</span></a> <span class="kw3">type</span><span class="sy0">=</span><span class="st0">&quot;text/javascript&quot;</span> <span class="kw3">src</span><span class="sy0">=</span><span class="st0">&quot;js/ckeditor/adapters/jquery.js&quot;</span>&gt;&lt;<span class="sy0">/</span><a href="http://december.com/html/4/element/script.html"><span class="kw2">script</span></a>&gt;</span>
&nbsp;
        <span class="sc-1">&lt;!-- CODE TO START YOUR EDITOR --&gt;</span>
        <span class="sc2">&lt;<a href="http://december.com/html/4/element/script.html"><span class="kw2">script</span></a> <span class="kw3">type</span><span class="sy0">=</span><span class="st0">&quot;text/javascript&quot;</span>&gt;</span>            
            // jquery document ready function
            $(function(){                    
                    // 1. change the textarea into an editor
                    $('#editor_area').ckeditor();                
            });    
        <span class="sc2">&lt;<span class="sy0">/</span><a href="http://december.com/html/4/element/script.html"><span class="kw2">script</span></a>&gt;</span>
&nbsp;
    <span class="sc2">&lt;<span class="sy0">/</span><a href="http://december.com/html/4/element/head.html"><span class="kw2">head</span></a>&gt;</span>
    <span class="sc2">&lt;<a href="http://december.com/html/4/element/body.html"><span class="kw2">body</span></a>&gt;</span>
        <span class="sc2">&lt;<a href="http://december.com/html/4/element/h1.html"><span class="kw2">h1</span></a>&gt;</span>CKEditor with jQuery<span class="sc2">&lt;<span class="sy0">/</span><a href="http://december.com/html/4/element/h1.html"><span class="kw2">h1</span></a>&gt;</span>
        <span class="sc2">&lt;<a href="http://december.com/html/4/element/form.html"><span class="kw2">form</span></a> <span class="kw3">id</span><span class="sy0">=</span><span class="st0">&quot;editor_form&quot;</span> <span class="kw3">method</span><span class="sy0">=</span><span class="st0">&quot;post&quot;</span> <span class="kw3">action</span><span class="sy0">=</span><span class="st0">&quot;index.html&quot;</span>&gt;</span>
            <span class="sc2">&lt;<a href="http://december.com/html/4/element/textarea.html"><span class="kw2">textarea</span></a> <span class="kw3">id</span><span class="sy0">=</span><span class="st0">&quot;editor_area&quot;</span>&gt;&lt;<span class="sy0">/</span><a href="http://december.com/html/4/element/textarea.html"><span class="kw2">textarea</span></a>&gt;</span>
        <span class="sc2">&lt;<span class="sy0">/</span><a href="http://december.com/html/4/element/form.html"><span class="kw2">form</span></a>&gt;</span>
    <span class="sc2">&lt;<span class="sy0">/</span><a href="http://december.com/html/4/element/body.html"><span class="kw2">body</span></a>&gt;</span>
<span class="sc2">&lt;<span class="sy0">/</span><a href="http://december.com/html/4/element/html.html"><span class="kw2">html</span></a>&gt;</span></pre></div></div>
<p>&nbsp;</p>
<p><strong> HERE IS WHAT YOU SHOULD HAVE WHEN YOU ARE DONE.</strong></p>
<p><a href="http://eligeske.com/wp-content/uploads/2012/03/ckeditor_and_jquery.jpg"><img class="aligncenter size-full wp-image-630" title="ckeditor_and_jquery" src="http://eligeske.com/wp-content/uploads/2012/03/ckeditor_and_jquery.jpg" alt="ckeditor created with jquery" width="656" height="426" /></a></p>
<p>The extra javascript at the top of the page is the code you use to initiate the ckeditor.  The syntax looks familiar for you jquery people out there.</p>
<p>So there you have it, quick and simple way to initiate the ckeditor via jquery.</p>
<p>What&#8217;s next? How about using it. Removing things from the toolbar, overriding the save button, and maybe even creating your own custom drop down or select.</p>
<p><strong><span style="text-decoration: underline;">NEXT</span>:  <a title="Customizing the CKEditor toolbar with jQuery" href="http://eligeske.com/jquery/customizing-the-ckeditor-toolbar-with-jquery/">Learn how to customize the ckeditor toolbar with jquery.</a></strong></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://eligeske.com/jquery/starting-ckeditor-with-jquery/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

