<?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>die musterdenker &#187; FCKEditor</title>
	<atom:link href="http://www.musterdenker.de/tag/fckeditor/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.musterdenker.de</link>
	<description></description>
	<lastBuildDate>Sun, 11 Apr 2010 18:07:10 +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>OXID Module Review &#8211; No.1: fck editor</title>
		<link>http://www.musterdenker.de/2010/02/oxid-module-review-no-1-fck-editor/</link>
		<comments>http://www.musterdenker.de/2010/02/oxid-module-review-no-1-fck-editor/#comments</comments>
		<pubDate>Sun, 07 Feb 2010 16:48:50 +0000</pubDate>
		<dc:creator>mathias</dc:creator>
				<category><![CDATA[Oxid - Module]]></category>
		<category><![CDATA[extension review]]></category>
		<category><![CDATA[FCKEditor]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[oxid]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.musterdenker.de/?p=193</guid>
		<description><![CDATA[Together with the last year release of the OXID eShop open source (GPL V3) version, the OXID eXchange open its doors to the public. The OXID eXchange is similar to the Apple App Store or the Magento connect a central place where developers can put their applications or in terms of OXID eShop extensions (modules, [...]]]></description>
			<content:encoded><![CDATA[<p>Together with the last year release of the OXID eShop open source (GPL V3) version, the<a href="http://www.oxid-esales.com/de/exchange" target="_blank"> OXID eXchange</a> open its doors to the public. The OXID eXchange is similar to the Apple App Store or the Magento connect a central place where developers can put their applications or in terms of OXID eShop extensions (modules, language packs and themes) in order to distribute and sell them. In the eXchange we find a description by the creator of the extension as well as reviews written by customers. But as most of the reviews are more like comments and tend to be quite short it may be hard to determine the quality of the extensions. That&#8217;s why we&#8217;ll start a series of objective reviews in order to help people in the jungle of OXID extensions. For the start we&#8217;ll mainly cover open source extensions but we plan to cover paid extensions as well.</p>
<p>Number one in our series will be the &#8220;fck editor&#8221; (<a href="http://www.oxid-esales.com/en/exchange/extensions/fckeditor-lauffaehig-mit-oxid-eepece" target="_self">link to eXchange</a>) extension by <a title="Top Concepts" href="http://www.topconcepts.de" target="_blank">top concepts</a> a german OXID partner located in Hambug.</p>
<p>All testing take place with the newest version of the OXID eShop CE (4.2) in UTF-8 mode, installed on my local Mac OSX 10.5.7 with an old PHP 5.2.5.</p>
<p>Description:<br />
This extension adds the open source fck editor, which is today known as the <a href="http://ckeditor.com/" target="_blank">CKEditor</a>, as default WYSIWYG editor in the eShop. Remark: The OXID eShop CE ships without an WYSIWYG editor so you&#8217;ll need to install this or the TinyMCE editor in order to use full WYSIWYG features.</p>
<p>Documentation:<br />
There is a small install.txt file in english and german. All you need to know about installing can be found there, but don&#8217;t expect any additional information. A new user might have a problem with the term &#8220;add the following lines to the &#8216;Modules&#8217; section&#8221;. It would be better to describe where to find the text box in admin area (Master Settings -&gt; Core Settings -&gt; System -&gt; Modules), especially as WYSIWYG usually is the first think installed when someone tries the eShop for the first time.</p>
<p>Installation:<br />
Following the instructions it takes me 20 seconds and FCK Editor is installed an working. No problems at all.</p>
<p>Good:</p>
<ul>
<li>Easy and fast installation and applies to all OXID eShop text boxes that are capable of html text.</li>
<li>The FCK Editor is a very good editor including adding / uploading of pictures.</li>
</ul>
<p>Bad:</p>
<ul>
<li>The FCK Editor interface switches language according to the text language and not based on the admin interface language. So if an english admin edits the german translation of an article the FCK editor&#8217;s interface is in german too.</li>
<li>Maximizing the editor can&#8217;t be used as the OXID &#8220;save&#8221; button disappears, although this is mostly a problem of the admin templates.</li>
</ul>
<p>Conclusion:<br />
Use it! You might also think about replacing the build in editor of PE and EE versions by the FCK editor if you like it more.</p>
<p>Please feel free to comment or recomment other extensions&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.musterdenker.de/2010/02/oxid-module-review-no-1-fck-editor/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Rails 2.2, Active_Scaffold and FCKEditor</title>
		<link>http://www.musterdenker.de/2009/03/rails-22-active_scaffold-and-fckeditor/</link>
		<comments>http://www.musterdenker.de/2009/03/rails-22-active_scaffold-and-fckeditor/#comments</comments>
		<pubDate>Wed, 04 Mar 2009 12:36:43 +0000</pubDate>
		<dc:creator>christian</dc:creator>
				<category><![CDATA[Hints&CodeSnippits]]></category>
		<category><![CDATA[active_scaffold]]></category>
		<category><![CDATA[FCKEditor]]></category>
		<category><![CDATA[rails]]></category>

		<guid isPermaLink="false">http://www.musterdenker.de/?p=92</guid>
		<description><![CDATA[In one of our upcomming Projects we are using Active_Scaffold for Backend Functionality. Therefore we want to integrate the FCKEditor. We are using the actual Version of the FCKEditor Plugin for Rails.  To integrate the FCKEditor with Active_Scaffold i was following this Tutorial. But it seems that this  does not run with Rails 2.2.
We´ve got [...]]]></description>
			<content:encoded><![CDATA[<p>In one of our upcomming Projects we are using Active_Scaffold for Backend Functionality. Therefore we want to integrate the FCKEditor. We are using the actual Version of the <a href="http://rubyforge.org/projects/fckeditorp/" target="_blank">FCKEditor Plugin</a> for Rails.  To integrate the FCKEditor with Active_Scaffold i was following this <a href="http://ganeshmohan.wordpress.com/2008/11/12/fck-editor-plugin-in-activescaffold/" target="_blank">Tutorial</a>. But it seems that this  does not run with Rails 2.2.</p>
<p>We´ve got the following error:</p>

<div class="wp_codebox_msgheader wp_codebox_hide"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p92code4'); return false;">View Code</a> RUBY</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p924"><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code" id="p92code4"><pre class="ruby" style="font-family:monospace;"><span style="color:#CC00FF; font-weight:bold;">NoMethodError</span> <span style="color:#006600; font-weight:bold;">&#40;</span>undefined method <span style="color:#996600;">`configure' for #):
    /vendor/plugins/active_scaffold/lib/active_scaffold/config/core.rb:147:in `</span>method_missing<span style="color:#996600;">'
    /vendor/plugins/active_scaffold/lib/active_scaffold.rb:57:in `active_scaffold'</span></pre></td></tr></table></div>

<p>This was happen right after the instgallation of the FCKEditor Pugin so i was diggin deeper into the Problem. It comes out that the problem was the overwrite of the <strong>javascript_include_tag</strong> in the fckeditor.rb. My solution was to comment the hole module out.</p>

<div class="wp_codebox_msgheader wp_codebox_hide"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p92code5'); return false;">View Code</a> RUBY</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p925"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
</pre></td><td class="code" id="p92code5"><pre class="ruby" style="font-family:monospace;"><span style="color:#008000; font-style:italic;"># Fckeditor</span>
<span style="color:#9966CC; font-weight:bold;">module</span> Fckeditor
  PLUGIN_NAME = <span style="color:#996600;">'fckeditor'</span>
  PLUGIN_PATH = <span style="color:#996600;">&quot;#{RAILS_ROOT}/vendor/plugins/#{PLUGIN_NAME}&quot;</span>
  PLUGIN_PUBLIC_PATH = <span style="color:#996600;">&quot;#{PLUGIN_PATH}/public&quot;</span>
  PLUGIN_CONTROLLER_PATH = <span style="color:#996600;">&quot;#{PLUGIN_PATH}/app/controllers&quot;</span>
  PLUGIN_VIEWS_PATH = <span style="color:#996600;">&quot;#{PLUGIN_PATH}/app/views&quot;</span>
  PLUGIN_HELPER_PATH = <span style="color:#996600;">&quot;#{PLUGIN_PATH}/app/helpers&quot;</span>
&nbsp;
  <span style="color:#9966CC; font-weight:bold;">module</span> Helper
    <span style="color:#9966CC; font-weight:bold;">def</span> fckeditor_textarea<span style="color:#006600; font-weight:bold;">&#40;</span>object, field, options = <span style="color:#006600; font-weight:bold;">&#123;</span><span style="color:#006600; font-weight:bold;">&#125;</span><span style="color:#006600; font-weight:bold;">&#41;</span>
      var = instance_variable_get<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#996600;">&quot;@#{object}&quot;</span><span style="color:#006600; font-weight:bold;">&#41;</span>
      <span style="color:#9966CC; font-weight:bold;">if</span> var
        value = var.<span style="color:#9900CC;">send</span><span style="color:#006600; font-weight:bold;">&#40;</span>field.<span style="color:#9900CC;">to_sym</span><span style="color:#006600; font-weight:bold;">&#41;</span>
        value = value.<span style="color:#0000FF; font-weight:bold;">nil</span>? ? <span style="color:#996600;">&quot;&quot;</span> : value
      <span style="color:#9966CC; font-weight:bold;">else</span>
        value = <span style="color:#996600;">&quot;&quot;</span>
        klass = <span style="color:#996600;">&quot;#{object}&quot;</span>.<span style="color:#9900CC;">camelcase</span>.<span style="color:#9900CC;">constantize</span>
        instance_variable_set<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#996600;">&quot;@#{object}&quot;</span>, <span style="color:#CC0066; font-weight:bold;">eval</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#996600;">&quot;#{klass}.new()&quot;</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span>
      <span style="color:#9966CC; font-weight:bold;">end</span>
      id = fckeditor_element_id<span style="color:#006600; font-weight:bold;">&#40;</span>object, field<span style="color:#006600; font-weight:bold;">&#41;</span>
&nbsp;
      cols = options<span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#ff3333; font-weight:bold;">:cols</span><span style="color:#006600; font-weight:bold;">&#93;</span>.<span style="color:#0000FF; font-weight:bold;">nil</span>? ? <span style="color:#996600;">''</span> : <span style="color:#996600;">&quot;cols='&quot;</span><span style="color:#006600; font-weight:bold;">+</span>options<span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#ff3333; font-weight:bold;">:cols</span><span style="color:#006600; font-weight:bold;">&#93;</span><span style="color:#006600; font-weight:bold;">+</span><span style="color:#996600;">&quot;'&quot;</span>
      rows = options<span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#ff3333; font-weight:bold;">:rows</span><span style="color:#006600; font-weight:bold;">&#93;</span>.<span style="color:#0000FF; font-weight:bold;">nil</span>? ? <span style="color:#996600;">''</span> : <span style="color:#996600;">&quot;rows='&quot;</span><span style="color:#006600; font-weight:bold;">+</span>options<span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#ff3333; font-weight:bold;">:rows</span><span style="color:#006600; font-weight:bold;">&#93;</span><span style="color:#006600; font-weight:bold;">+</span><span style="color:#996600;">&quot;'&quot;</span>
&nbsp;
      width = options<span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#ff3333; font-weight:bold;">:width</span><span style="color:#006600; font-weight:bold;">&#93;</span>.<span style="color:#0000FF; font-weight:bold;">nil</span>? ? <span style="color:#996600;">'100%'</span> : options<span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#ff3333; font-weight:bold;">:width</span><span style="color:#006600; font-weight:bold;">&#93;</span>
      height = options<span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#ff3333; font-weight:bold;">:height</span><span style="color:#006600; font-weight:bold;">&#93;</span>.<span style="color:#0000FF; font-weight:bold;">nil</span>? ? <span style="color:#996600;">'100%'</span> : options<span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#ff3333; font-weight:bold;">:height</span><span style="color:#006600; font-weight:bold;">&#93;</span>
&nbsp;
      toolbarSet = options<span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#ff3333; font-weight:bold;">:toolbarSet</span><span style="color:#006600; font-weight:bold;">&#93;</span>.<span style="color:#0000FF; font-weight:bold;">nil</span>? ? <span style="color:#996600;">'Default'</span> : options<span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#ff3333; font-weight:bold;">:toolbarSet</span><span style="color:#006600; font-weight:bold;">&#93;</span>
&nbsp;
      <span style="color:#9966CC; font-weight:bold;">if</span> options<span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#ff3333; font-weight:bold;">:ajax</span><span style="color:#006600; font-weight:bold;">&#93;</span>
        inputs = <span style="color:#996600;">&quot;
&lt;input id=&quot;</span><span style="color:#008000; font-style:italic;">#{id}_hidden&quot; name=&quot;#{object}[#{field}]&quot; type=&quot;hidden&quot; /&gt;\n&quot; &amp;lt;&amp;lt;</span>
                 <span style="color:#996600;">&quot;&lt;textarea id=&quot;</span><span style="color:#008000; font-style:italic;">#{id}&quot; name=&quot;#{id}&quot;&gt;#{value}&lt;/textarea&gt;\n&quot;</span>
      <span style="color:#9966CC; font-weight:bold;">else</span>
        inputs = <span style="color:#996600;">&quot;&lt;textarea id=&quot;</span><span style="color:#008000; font-style:italic;">#{id}&quot; name=&quot;#{object}[#{field}]&quot;&gt;#{value}&lt;/textarea&gt;\n&quot;</span>
      <span style="color:#9966CC; font-weight:bold;">end</span>
&nbsp;
      js_path = <span style="color:#996600;">&quot;#{ActionController::Base.relative_url_root}/javascripts&quot;</span>
      base_path = <span style="color:#996600;">&quot;#{js_path}/fckeditor/&quot;</span>
      <span style="color:#0000FF; font-weight:bold;">return</span> inputs <span style="color:#006600; font-weight:bold;">&amp;</span>lt;<span style="color:#006600; font-weight:bold;">&amp;</span>lt;
        javascript_tag<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#996600;">&quot;var oFCKeditor = new FCKeditor('#{id}', '#{width}', '#{height}', '#{toolbarSet}');<span style="color:#000099;">\n</span>&quot;</span> <span style="color:#006600; font-weight:bold;">&amp;</span>lt;<span style="color:#006600; font-weight:bold;">&amp;</span>lt;
                       <span style="color:#996600;">&quot;oFCKeditor.BasePath = <span style="color:#000099;">\&quot;</span>#{base_path}<span style="color:#000099;">\&quot;</span><span style="color:#000099;">\n</span>&quot;</span> <span style="color:#006600; font-weight:bold;">&amp;</span>lt;<span style="color:#006600; font-weight:bold;">&amp;</span>lt;
                       <span style="color:#996600;">&quot;oFCKeditor.Config['CustomConfigurationsPath'] = '#{js_path}/fckcustom.js';<span style="color:#000099;">\n</span>&quot;</span> <span style="color:#006600; font-weight:bold;">&amp;</span>lt;<span style="color:#006600; font-weight:bold;">&amp;</span>lt;
                       <span style="color:#996600;">&quot;oFCKeditor.ReplaceTextarea();<span style="color:#000099;">\n</span>&quot;</span><span style="color:#006600; font-weight:bold;">&#41;</span>
    <span style="color:#9966CC; font-weight:bold;">end</span>
&nbsp;
    <span style="color:#9966CC; font-weight:bold;">def</span> fckeditor_form_remote_tag<span style="color:#006600; font-weight:bold;">&#40;</span>options = <span style="color:#006600; font-weight:bold;">&#123;</span><span style="color:#006600; font-weight:bold;">&#125;</span><span style="color:#006600; font-weight:bold;">&#41;</span>
      editors = options<span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#ff3333; font-weight:bold;">:editors</span><span style="color:#006600; font-weight:bold;">&#93;</span>
      before = <span style="color:#996600;">&quot;&quot;</span>
      editors.<span style="color:#9900CC;">keys</span>.<span style="color:#9900CC;">each</span> <span style="color:#9966CC; font-weight:bold;">do</span> <span style="color:#006600; font-weight:bold;">|</span>e<span style="color:#006600; font-weight:bold;">|</span>
        editors<span style="color:#006600; font-weight:bold;">&#91;</span>e<span style="color:#006600; font-weight:bold;">&#93;</span>.<span style="color:#9900CC;">each</span> <span style="color:#9966CC; font-weight:bold;">do</span> <span style="color:#006600; font-weight:bold;">|</span>f<span style="color:#006600; font-weight:bold;">|</span>
          before <span style="color:#006600; font-weight:bold;">+</span>= fckeditor_before_js<span style="color:#006600; font-weight:bold;">&#40;</span>e, f<span style="color:#006600; font-weight:bold;">&#41;</span>
        <span style="color:#9966CC; font-weight:bold;">end</span>
      <span style="color:#9966CC; font-weight:bold;">end</span>
      options<span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#ff3333; font-weight:bold;">:before</span><span style="color:#006600; font-weight:bold;">&#93;</span> = options<span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#ff3333; font-weight:bold;">:before</span><span style="color:#006600; font-weight:bold;">&#93;</span>.<span style="color:#0000FF; font-weight:bold;">nil</span>? ? before : before <span style="color:#006600; font-weight:bold;">+</span> options<span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#ff3333; font-weight:bold;">:before</span><span style="color:#006600; font-weight:bold;">&#93;</span>
      form_remote_tag<span style="color:#006600; font-weight:bold;">&#40;</span>options<span style="color:#006600; font-weight:bold;">&#41;</span>
    <span style="color:#9966CC; font-weight:bold;">end</span>
&nbsp;
    <span style="color:#9966CC; font-weight:bold;">def</span> fckeditor_remote_form_for<span style="color:#006600; font-weight:bold;">&#40;</span>object_name, <span style="color:#006600; font-weight:bold;">*</span>args, <span style="color:#006600; font-weight:bold;">&amp;</span>amp;proc<span style="color:#006600; font-weight:bold;">&#41;</span>
      options = args.<span style="color:#9900CC;">last</span>.<span style="color:#9900CC;">is_a</span>?<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#CC00FF; font-weight:bold;">Hash</span><span style="color:#006600; font-weight:bold;">&#41;</span> ? args.<span style="color:#9900CC;">pop</span> : <span style="color:#006600; font-weight:bold;">&#123;</span><span style="color:#006600; font-weight:bold;">&#125;</span>
      concat<span style="color:#006600; font-weight:bold;">&#40;</span>fckeditor_form_remote_tag<span style="color:#006600; font-weight:bold;">&#40;</span>options<span style="color:#006600; font-weight:bold;">&#41;</span>, <span style="color:#CC0066; font-weight:bold;">proc</span>.<span style="color:#CC0066; font-weight:bold;">binding</span><span style="color:#006600; font-weight:bold;">&#41;</span>
      fields_for<span style="color:#006600; font-weight:bold;">&#40;</span>object_name, <span style="color:#006600; font-weight:bold;">*</span><span style="color:#006600; font-weight:bold;">&#40;</span>args <span style="color:#006600; font-weight:bold;">&amp;</span>lt;<span style="color:#006600; font-weight:bold;">&amp;</span>lt; options<span style="color:#006600; font-weight:bold;">&#41;</span>, <span style="color:#006600; font-weight:bold;">&amp;</span>amp;proc<span style="color:#006600; font-weight:bold;">&#41;</span>
      concat<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#996600;">'
&nbsp;
'</span>, <span style="color:#CC0066; font-weight:bold;">proc</span>.<span style="color:#CC0066; font-weight:bold;">binding</span><span style="color:#006600; font-weight:bold;">&#41;</span>
    <span style="color:#9966CC; font-weight:bold;">end</span>
    alias_method <span style="color:#ff3333; font-weight:bold;">:fckeditor_form_remote_for</span>, <span style="color:#ff3333; font-weight:bold;">:fckeditor_remote_form_for</span>
&nbsp;
    <span style="color:#9966CC; font-weight:bold;">def</span> fckeditor_element_id<span style="color:#006600; font-weight:bold;">&#40;</span>object, field<span style="color:#006600; font-weight:bold;">&#41;</span>
      id = <span style="color:#CC0066; font-weight:bold;">eval</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#996600;">&quot;@#{object}.id&quot;</span><span style="color:#006600; font-weight:bold;">&#41;</span>
      <span style="color:#996600;">&quot;#{object}_#{id}_#{field}_editor&quot;</span>
    <span style="color:#9966CC; font-weight:bold;">end</span>
&nbsp;
    <span style="color:#9966CC; font-weight:bold;">def</span> fckeditor_div_id<span style="color:#006600; font-weight:bold;">&#40;</span>object, field<span style="color:#006600; font-weight:bold;">&#41;</span>
      id = <span style="color:#CC0066; font-weight:bold;">eval</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#996600;">&quot;@#{object}.id&quot;</span><span style="color:#006600; font-weight:bold;">&#41;</span>
      <span style="color:#996600;">&quot;div-#{object}-#{id}-#{field}-editor&quot;</span>
    <span style="color:#9966CC; font-weight:bold;">end</span>
&nbsp;
    <span style="color:#9966CC; font-weight:bold;">def</span> fckeditor_before_js<span style="color:#006600; font-weight:bold;">&#40;</span>object, field<span style="color:#006600; font-weight:bold;">&#41;</span>
      id = fckeditor_element_id<span style="color:#006600; font-weight:bold;">&#40;</span>object, field<span style="color:#006600; font-weight:bold;">&#41;</span>
      <span style="color:#996600;">&quot;var oEditor = FCKeditorAPI.GetInstance('&quot;</span><span style="color:#006600; font-weight:bold;">+</span>id<span style="color:#006600; font-weight:bold;">+</span><span style="color:#996600;">&quot;'); document.getElementById('&quot;</span><span style="color:#006600; font-weight:bold;">+</span>id<span style="color:#006600; font-weight:bold;">+</span><span style="color:#996600;">&quot;_hidden').value = oEditor.GetXHTML();&quot;</span>
    <span style="color:#9966CC; font-weight:bold;">end</span>
  <span style="color:#9966CC; font-weight:bold;">end</span>
<span style="color:#9966CC; font-weight:bold;">end</span>
&nbsp;
<span style="color:#008000; font-style:italic;">#include ActionView</span>
<span style="color:#008000; font-style:italic;">#module ActionView::Helpers::AssetTagHelper</span>
<span style="color:#008000; font-style:italic;">#  alias_method :rails_javascript_include_tag, :javascript_include_tag</span>
<span style="color:#008000; font-style:italic;">#</span>
<span style="color:#008000; font-style:italic;">#  #  &amp;lt;%= javascript_include_tag :defaults, :fckeditor %&amp;gt;</span>
<span style="color:#008000; font-style:italic;">#  def javascript_include_tag(*sources)</span>
<span style="color:#008000; font-style:italic;">#    main_sources, application_source = [], []</span>
<span style="color:#008000; font-style:italic;">#    if sources.include?(:fckeditor)</span>
<span style="color:#008000; font-style:italic;">#      sources.delete(:fckeditor)</span>
<span style="color:#008000; font-style:italic;">#      sources.push('fckeditor/fckeditor')</span>
<span style="color:#008000; font-style:italic;">#    end</span>
<span style="color:#008000; font-style:italic;">#    unless sources.empty?</span>
<span style="color:#008000; font-style:italic;">#      main_sources = rails_javascript_include_tag(*sources).split(&quot;\n&quot;)</span>
<span style="color:#008000; font-style:italic;">#      application_source = main_sources.pop if main_sources.last.include?('application.js')</span>
<span style="color:#008000; font-style:italic;">#    end</span>
<span style="color:#008000; font-style:italic;">#    [main_sources.join(&quot;\n&quot;), application_source].join(&quot;\n&quot;)</span>
<span style="color:#008000; font-style:italic;">#  end</span>
<span style="color:#008000; font-style:italic;">#end</span></pre></td></tr></table></div>

<p>The second Step was to include the needed Javascript Files on top of our layout file:</p>

<div class="wp_codebox_msgheader wp_codebox_hide"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p92code6'); return false;">View Code</a> RUBY</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p926"><td class="line_numbers"><pre>1
2
</pre></td><td class="code" id="p92code6"><pre class="ruby" style="font-family:monospace;">    <span style="color:#006600; font-weight:bold;">&lt;%</span>= javascript_include_tag <span style="color:#996600;">&quot;fckeditor/fckeditor&quot;</span> <span style="color:#006600; font-weight:bold;">%&gt;</span>
    <span style="color:#006600; font-weight:bold;">&lt;%</span>= javascript_include_tag <span style="color:#996600;">&quot;fckcustom&quot;</span> <span style="color:#006600; font-weight:bold;">%&gt;</span></pre></td></tr></table></div>

<p>Now the FCKEditor works smoothly with Active_Scaffold. We will show the rest of the Integration with Active_Scaffold in one of our next Posts.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.musterdenker.de/2009/03/rails-22-active_scaffold-and-fckeditor/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
