<?xml version="1.0" encoding="UTF-8"?>
<feed xml:lang="en-US" xmlns="http://www.w3.org/2005/Atom">
  <title>TheWebFellas - Ruby on Rails Development Specialists UK - FCKEditor tag helper Comments</title>
  <id>tag:thewebfellas.com,2008:/blog/2007/11/23/fckeditor-tag-helper/comments</id>
  <generator version="0.7.3" uri="http://mephistoblog.com">Mephisto Noh-Varr</generator>
  <link href="http://thewebfellas.com/blog/2007/11/23/fckeditor-tag-helper/comments.xml" rel="self" type="application/atom+xml"/>
  <link href="/blog/2007/11/23/fckeditor-tag-helper" rel="alternate" type="text/html"/>
  <updated>2008-09-22T10:31:12Z</updated>
  <entry xml:base="http://thewebfellas.com/">
    <author>
      <name>abhishek</name>
    </author>
    <id>tag:thewebfellas.com,2007-11-23:16:1853</id>
    <published>2008-09-22T10:31:12Z</published>
    <updated>2008-09-22T10:31:12Z</updated>
    <category term="Blog"/>
    <link href="http://thewebfellas.com/blog/2007/11/23/fckeditor-tag-helper" rel="alternate" type="text/html"/>
    <title>Comment on 'FCKEditor tag helper' by abhishek</title>
<content type="html">&lt;p&gt;Hi Rob,
Thanks a ton, was looking this type of stuff only...&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://thewebfellas.com/">
    <author>
      <name>Rob Anderton</name>
    </author>
    <id>tag:thewebfellas.com,2007-11-23:16:920</id>
    <published>2008-05-17T17:39:35Z</published>
    <updated>2008-05-17T17:39:35Z</updated>
    <category term="Blog"/>
    <link href="http://thewebfellas.com/blog/2007/11/23/fckeditor-tag-helper" rel="alternate" type="text/html"/>
    <title>Comment on 'FCKEditor tag helper' by Rob Anderton</title>
<content type="html">&lt;p&gt;Wouldn't calling something like &lt;a href=&quot;http://api.rubyonrails.com/classes/ActionView/Helpers/SanitizeHelper.html#M000938&quot; title=&quot;Rails strip_tags helper&quot;&gt;&lt;code&gt;strip_tags&lt;/code&gt;&lt;/a&gt; on the data when you don't want the formatting do the trick?&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://thewebfellas.com/">
    <author>
      <name>Jon</name>
    </author>
    <id>tag:thewebfellas.com,2007-11-23:16:914</id>
    <published>2008-05-15T07:25:54Z</published>
    <updated>2008-05-15T07:25:54Z</updated>
    <category term="Blog"/>
    <link href="http://thewebfellas.com/blog/2007/11/23/fckeditor-tag-helper" rel="alternate" type="text/html"/>
    <title>Comment on 'FCKEditor tag helper' by Jon</title>
<content type="html">&lt;p&gt;Hi , 
I had integrated the plugin successfully and it looks awesome.
But I have got a problem while saving the inline edited data and saving it and then reproducing it back.
Ok let me try to make it more clear :
COnsider I have to save &quot;ABC&quot;
I add styles using the FCK editor like &quot;&lt;p&gt;&lt;b&gt;ABC&lt;/b&gt;&lt;/p&gt;&quot;
So now when i save the above text with the styles get saved .
I need to reproduce the styled text at some places whereas show the non styled data at other instances .
Do let me know what we can do.
Thanx a lot!!!
JON&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://thewebfellas.com/">
    <author>
      <name>Rob</name>
    </author>
    <id>tag:thewebfellas.com,2007-11-23:16:35</id>
    <published>2007-12-04T08:30:50Z</published>
    <updated>2007-12-04T08:30:50Z</updated>
    <category term="Blog"/>
    <link href="http://thewebfellas.com/blog/2007/11/23/fckeditor-tag-helper" rel="alternate" type="text/html"/>
    <title>Comment on 'FCKEditor tag helper' by Rob</title>
<content type="html">&lt;p&gt;Hi&lt;/p&gt;

&lt;p&gt;The rake task should be included with the plugin - you can verify the file exists by looking for &lt;kbd&gt;fckeditor_tasks.rake&lt;/kbd&gt; in &lt;kbd&gt;/vendor/plugins/fckeditor/tasks&lt;/kbd&gt;.&lt;/p&gt;

&lt;p&gt;I’m not sure why this wouldn’t be working for you – however I notice from &lt;a href=&quot;http://blog.caronsoftware.com/2007/11/16/fckeditor-plugin-0-4-2-released#comment-674&quot; title=&quot;Read comment on Scott’s blog&quot;&gt;this comment&lt;/a&gt; on Scott’s blog that you’re not alone so hopefully Scott will be able to shed some light on this.&lt;/p&gt;

&lt;p&gt;Rob&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://thewebfellas.com/">
    <author>
      <name>Jimmy</name>
    </author>
    <id>tag:thewebfellas.com,2007-11-23:16:34</id>
    <published>2007-12-03T20:30:33Z</published>
    <updated>2007-12-03T20:30:33Z</updated>
    <category term="Blog"/>
    <link href="http://thewebfellas.com/blog/2007/11/23/fckeditor-tag-helper" rel="alternate" type="text/html"/>
    <title>Comment on 'FCKEditor tag helper' by Jimmy</title>
<content type="html">&lt;p&gt;Hi Rob,&lt;/p&gt;

&lt;p&gt;When I ran this command, rake fckeditor:install
I get this error message
rake aborted!
Don't know how to build task 'fckeditor:install'&lt;/p&gt;

&lt;p&gt;I already did &quot;cd&quot; to the rails root app
Do you know what's wrong?&lt;/p&gt;

&lt;p&gt;Thanks a lot.&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://thewebfellas.com/">
    <author>
      <name>Rob</name>
    </author>
    <id>tag:thewebfellas.com,2007-11-23:16:27</id>
    <published>2007-12-01T19:07:36Z</published>
    <updated>2007-12-01T19:07:36Z</updated>
    <category term="Blog"/>
    <link href="http://thewebfellas.com/blog/2007/11/23/fckeditor-tag-helper" rel="alternate" type="text/html"/>
    <title>Comment on 'FCKEditor tag helper' by Rob</title>
<content type="html">&lt;p&gt;Hi Jimmy,&lt;/p&gt;

&lt;p&gt;Well I tried to reproduce the problem you’re having but failed. I created a new Rails application, installed Scott’s plugin, ran &lt;kbd&gt;rake fckeditor:install&lt;/kbd&gt; and then created a scaffold. I added the necessary javascript to the layout and updated the form template and it all just worked.&lt;/p&gt;

&lt;p&gt;It’s worth pointing out that you don’t actually need my helper in your template because you’re using a field tied to a model. I just used the helper from the plugin like this:&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;ruby&quot;&gt;&amp;lt;%= fckeditor_textarea(&quot;inventory&quot;, &quot;summary&quot;, :toolbarSet =&amp;gt; 'Simple', :width =&amp;gt; '100%', :height =&amp;gt; '200px') %&amp;gt;&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Sorry I can’t be more helpful,&lt;br /&gt;Rob&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://thewebfellas.com/">
    <author>
      <name>jimmy</name>
    </author>
    <id>tag:thewebfellas.com,2007-11-23:16:25</id>
    <published>2007-11-28T20:26:46Z</published>
    <updated>2007-11-28T20:26:46Z</updated>
    <category term="Blog"/>
    <link href="http://thewebfellas.com/blog/2007/11/23/fckeditor-tag-helper" rel="alternate" type="text/html"/>
    <title>Comment on 'FCKEditor tag helper' by jimmy</title>
<content type="html">&lt;p&gt;
  Hi Rob,&lt;br /&gt;
  Rails version: 1.2.5. Yes, FCKeditor Plugin 0.4.2. Yes. I do have Fckeditor
&lt;/p&gt;
&lt;br /&gt;

&lt;p&gt;_form.rhtml&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;ruby&quot;&gt;&amp;lt;p&amp;gt;&amp;lt;label for=&quot;summary&quot;&amp;gt;Summary&amp;lt;/label&amp;gt;&amp;lt;br/&amp;gt;
&amp;lt;%= text_area 'inventory', 'summary'  %&amp;gt;&amp;lt;/p&amp;gt;
inventory = object
summary = field&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;In the controller:&lt;/p&gt;

&lt;pre&gt;&lt;code class=&quot;ruby&quot;&gt;def update
  @inventories = Inventory.find(params[:id])
  if @inventory.update_attributes(params[:inspection])
    flash[:notice] = 'Inventory was successfully updated.'
    redirect_to :action =&amp;gt; 'show', :id =&amp;gt; @inventory
  else
    render :action =&amp;gt; 'edit'
  end&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;
  FCKeditor Plugin 0.4.2 downloaded from Scott. There are several files in lib folder like fckeditor.rb, fkeditor_file_utils.rb etc. I don't get what these files.
&lt;/p&gt;
 
&lt;p&gt;Thanks&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://thewebfellas.com/">
    <author>
      <name>Rob</name>
    </author>
    <id>tag:thewebfellas.com,2007-11-23:16:23</id>
    <published>2007-11-27T18:42:40Z</published>
    <updated>2007-11-27T18:42:40Z</updated>
    <category term="Blog"/>
    <link href="http://thewebfellas.com/blog/2007/11/23/fckeditor-tag-helper" rel="alternate" type="text/html"/>
    <title>Comment on 'FCKEditor tag helper' by Rob</title>
<content type="html">&lt;p&gt;Hey Jimmy, here are a few questions for you:&lt;/p&gt;

&lt;ul&gt;
    &lt;li&gt;What version of Rails are you using?&lt;/li&gt;
    &lt;li&gt;Are you using the latest version of the &lt;a href=&quot;http://blog.caronsoftware.com/2007/11/16/fckeditor-plugin-0-4-2-released&quot; title=&quot;FCKEditor plugin 0.4.2&quot;&gt;FCKEditor plugin&lt;/a&gt;?&lt;/li&gt;
    &lt;li&gt;Do you have an &lt;samp&gt;fckeditor&lt;/samp&gt; folder in &lt;samp&gt;public/javascripts&lt;/samp&gt;?&lt;/li&gt;
    &lt;li&gt;What did the original text field code that was generated by the scaffold look like?&lt;/li&gt;
&lt;/ul&gt;</content>  </entry>
  <entry xml:base="http://thewebfellas.com/">
    <author>
      <name>jimmy</name>
    </author>
    <id>tag:thewebfellas.com,2007-11-23:16:22</id>
    <published>2007-11-26T21:23:27Z</published>
    <updated>2007-11-26T21:23:27Z</updated>
    <category term="Blog"/>
    <link href="http://thewebfellas.com/blog/2007/11/23/fckeditor-tag-helper" rel="alternate" type="text/html"/>
    <title>Comment on 'FCKEditor tag helper' by jimmy</title>
<content type="html">&lt;p&gt;Hi Rob,&lt;/p&gt;

&lt;p&gt;I generate the field by scaffolding. I would like to have textareas integrated with FCK. Can you show me how? Also, when users input data into the textarea, the data should be updated in the database.&lt;/p&gt;

&lt;p&gt;I have placed your helper code into the application&lt;em&gt;helper.rb.Then I replace the text field generated by scaffolding by the fckeditor&lt;/em&gt;textarea_tag you provided. I got the follow error: 
no route found to match &quot;/javascripts/fckeditor/editor/fckeditor.html&quot; with {:method=&gt;:get}&lt;/p&gt;

&lt;p&gt;My _form.rhtml look like&lt;/p&gt;

&lt;p&gt;&amp;lt;label&gt;Comments FCK&amp;lt;/label&gt;&lt;br /&gt;
&amp;lt;%= fckeditor_textarea_tag 'my_comment_object', h('comments_field'), id =&gt; 'text_area_id', :cols =&gt; '55', :rows =&gt; '15'%&gt;&lt;/p&gt;

&lt;p&gt;id =&gt; 'text&lt;em&gt;area&lt;/em&gt;id' What would id be?&lt;/p&gt;

&lt;p&gt;Thank you!
jimmy&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://thewebfellas.com/">
    <author>
      <name>Rob</name>
    </author>
    <id>tag:thewebfellas.com,2007-11-23:16:20</id>
    <published>2007-11-25T16:00:15Z</published>
    <updated>2007-11-25T16:00:15Z</updated>
    <category term="Blog"/>
    <link href="http://thewebfellas.com/blog/2007/11/23/fckeditor-tag-helper" rel="alternate" type="text/html"/>
    <title>Comment on 'FCKEditor tag helper' by Rob</title>
<content type="html">&lt;p&gt;Hi Scott,&lt;/p&gt;

&lt;p&gt;Yes you're very welcome to add it into your next release - glad I could help.&lt;/p&gt;

&lt;p&gt;I also considered adding, but didn't get around to coding, support for a &lt;code&gt;size&lt;/code&gt; option so for example you could then say &lt;code&gt;:size =&gt; '10x10'&lt;/code&gt; instead of having to specify the rows and columns separately.&lt;/p&gt;

&lt;p&gt;Not a particularly exciting new feature but it would make the helper work more like the standard Rails text area helper.&lt;/p&gt;

&lt;p&gt;Thanks again for the plugin,&lt;br /&gt;Rob&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://thewebfellas.com/">
    <author>
      <name>Scott</name>
    </author>
    <id>tag:thewebfellas.com,2007-11-23:16:18</id>
    <published>2007-11-23T21:05:58Z</published>
    <updated>2007-11-23T21:05:58Z</updated>
    <category term="Blog"/>
    <link href="http://thewebfellas.com/blog/2007/11/23/fckeditor-tag-helper" rel="alternate" type="text/html"/>
    <title>Comment on 'FCKEditor tag helper' by Scott</title>
<content type="html">&lt;p&gt;Hi Rob,&lt;/p&gt;

&lt;p&gt;This looks good, I had completely forgotten about that request. If its ok with you can I stick it in the next release of the plugin?&lt;/p&gt;

&lt;p&gt;Cheers
Scott&lt;/p&gt;</content>  </entry>
</feed>
