I''ve updated the tutorial I put up last week to reflect some requested changes. The tutorial can still be found at: http://www.joshuamcharles.com/rails/fckeditor.html Things added: An application helper so that you can just go: <%= fckeditor_text_field( "ObjectName", "MethodName" %> An example of how to process text submitted from the editor A section on the limitations the editor imposes. If there is more information that you would like to see, drop me a line at let me know. Thanks, Josh
Josh Charles wrote:> I''ve updated the tutorial I put up last week to reflect some requested > changes. The tutorial can still be found at: > http://www.joshuamcharles.com/rails/fckeditor.html > > Things added: > > An application helper so that you can just go: > <%= fckeditor_text_field( "ObjectName", "MethodName" %> > An example of how to process text submitted from the editor > A section on the limitations the editor imposes. > > If there is more information that you would like to see, drop me a > line at let me know. > > Thanks, > JoshExcellent Stuff Josh! -- http://dema.ruby.com.br - Rails from a .NET perspective
Anyone else having problems with getting it to work in Firefox. The samples work, but not my form according to Josh's description. First of all there is an discrepancy in the naming of the helper function Josh. Just so you know, you change between referring to the fckedit_text_field and the fckeditor_text_field. Not the small difference. However, this was easy to fix. But when I've done everything according to the specs the editor comes up, sorta, in Firefox, and I can write text, but: * It doesn't copy the old text into it * No toolbars are visible But, when testing in IE everything is fine... Anyone else? Ronny On 9/5/05, Demetrius Nunes <demetrius@interface-ti.com.br> wrote:> > Josh Charles wrote: > > I've updated the tutorial I put up last week to reflect some requested > > changes. The tutorial can still be found at: > > http://www.joshuamcharles.com/rails/fckeditor.html > > > > Things added: > > > > An application helper so that you can just go: > > <%= fckeditor_text_field( "ObjectName", "MethodName" %> > > An example of how to process text submitted from the editor > > A section on the limitations the editor imposes. > > > > If there is more information that you would like to see, drop me a > > line at let me know. > > > > Thanks, > > Josh > > Excellent Stuff Josh! > > -- > http://dema.ruby.com.br - Rails from a .NET perspective > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >_______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
I fixed the consistency on the page so that it''s always fckeditor_text_field. Is the fckeditor loading properly if you load it manually, or is it not loading whether you use the helper I created or manually loading? How is the editor being loading - returned from an AJAX call or with full page? I tested the code in both internet exlporer and firefox (1.0.6) and it was working on my local machine. Since it loads in internet explorer, but not firefox, it''s probably a problem with how the browser is processing the javascript (aka, I didn''t take into account something I should have). If you get this working, please let me know so I can put up a fix. I can reproduce this at my end, however. Thanks, Josh On 9/5/05, Ronny Hanssen <super.ronny-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Anyone else having problems with getting it to work in Firefox. The samples > work, but not my form according to Josh''s description. First of all there is > an discrepancy in the naming of the helper function Josh. Just so you know, > you change between referring to the fckedit_text_field and the > fckeditor_text_field. Not the small difference. However, this was easy to > fix. > > But when I''ve done everything according to the specs the editor comes up, > sorta, in Firefox, and I can write text, but: > * It doesn''t copy the old text into it > * No toolbars are visible > But, when testing in IE everything is fine... > > Anyone else? > > Ronny > > > On 9/5/05, Demetrius Nunes <demetrius-fDpYTK8McCzCdMRJFJuMdgh0onu2mTI+@public.gmane.org> wrote: > > Josh Charles wrote: > > > I''ve updated the tutorial I put up last week to reflect some requested > > > changes. The tutorial can still be found at: > > > http://www.joshuamcharles.com/rails/fckeditor.html > > > > > > Things added: > > > > > > An application helper so that you can just go: > > > <%= fckeditor_text_field( "ObjectName", "MethodName" %> > > > An example of how to process text submitted from the editor > > > A section on the limitations the editor imposes. > > > > > > If there is more information that you would like to see, drop me a > > > line at let me know. > > > > > > Thanks, > > > Josh > > > > Excellent Stuff Josh! > > > > -- > > http://dema.ruby.com.br - Rails from a .NET perspective > > > > _______________________________________________ > > Rails mailing list > > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails > > >
BTW: The javascript console has an error message. It goes like this: Error: FCK.LinkedField has no properties Source File: http://localhost:3000/javascripts/editor/js/fckeditorcode_gecko_1.js Line: 14 Anyone else experienced the same? Ronny On 9/6/05, Ronny Hanssen <super.ronny@gmail.com> wrote:> > Anyone else having problems with getting it to work in Firefox. The > samples work, but not my form according to Josh's description. First of all > there is an discrepancy in the naming of the helper function Josh. Just so > you know, you change between referring to the fckedit_text_field and the > fckeditor_text_field. Not the small difference. However, this was easy to > fix. > > But when I've done everything according to the specs the editor comes up, > sorta, in Firefox, and I can write text, but: > * It doesn't copy the old text into it > * No toolbars are visible > But, when testing in IE everything is fine... > > Anyone else? > > Ronny > > On 9/5/05, Demetrius Nunes <demetrius@interface-ti.com.br> wrote: > > > > Josh Charles wrote: > > > I've updated the tutorial I put up last week to reflect some requested > > > changes. The tutorial can still be found at: > > > http://www.joshuamcharles.com/rails/fckeditor.html > > > > > > Things added: > > > > > > An application helper so that you can just go: > > > <%= fckeditor_text_field( "ObjectName", "MethodName" %> > > > An example of how to process text submitted from the editor > > > A section on the limitations the editor imposes. > > > > > > If there is more information that you would like to see, drop me a > > > line at let me know. > > > > > > Thanks, > > > Josh > > > > Excellent Stuff Josh! > > > > -- > > http://dema.ruby.com.br - Rails from a .NET perspective > > > > _______________________________________________ > > Rails mailing list > > Rails@lists.rubyonrails.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > >_______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
It's a standard inclusion, based on the helper you wrote a howto for. And it works in IE... Here's the page source: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" " http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <title>HIVE > items : edit</title> <link href="/stylesheets/hive_default.css" media="screen" rel="Stylesheet" type="text/css" /> <script src="/javascripts/fckeditor.js" type="text/javascript"></script> </head> <body> <div class="page_content"><h1>Editing article</h1> <form action="/items/edit/1" method="post"> <!--[form:article]--> <p><label for="article_header">Header</label><br/> <input id="article_header" name="article[header]" size="30" type="text" value="Test article" /></p> <p><label for="article_body">Body</label><br/> <textarea cols="40" id="article_body" name="article[body]" rows="20">Here is the full story.</textarea><script type="text/javascript">var oFCKeditor = new FCKeditor('article_body'); oFCKeditor.ReplaceTextarea()</script> <!--[eoform:article]--> <input name="commit" type="submit" value="Edit" /> </form> <a href="/items/show/1">Show</a> | <a href="/items/list">Back</a> </div> </body> </html> Ronny On 9/6/05, Ronny Hanssen <super.ronny@gmail.com> wrote:> > BTW: The javascript console has an error message. It goes like this: > > Error: FCK.LinkedField has no properties > Source File: > http://localhost:3000/javascripts/editor/js/fckeditorcode_gecko_1.js > Line: 14 > > Anyone else experienced the same? > > Ronny > > On 9/6/05, Ronny Hanssen <super.ronny@gmail.com> wrote: > > > > Anyone else having problems with getting it to work in Firefox. The > > samples work, but not my form according to Josh's description. First of all > > there is an discrepancy in the naming of the helper function Josh. Just so > > you know, you change between referring to the fckedit_text_field and the > > fckeditor_text_field. Not the small difference. However, this was easy to > > fix. > > > > But when I've done everything according to the specs the editor comes > > up, sorta, in Firefox, and I can write text, but: > > * It doesn't copy the old text into it > > * No toolbars are visible > > But, when testing in IE everything is fine... > > > > Anyone else? > > > > Ronny > > > > On 9/5/05, Demetrius Nunes < demetrius@interface-ti.com.br> wrote: > > > > > > Josh Charles wrote: > > > > I've updated the tutorial I put up last week to reflect some > > > requested > > > > changes. The tutorial can still be found at: > > > > http://www.joshuamcharles.com/rails/fckeditor.html > > > > > > > > Things added: > > > > > > > > An application helper so that you can just go: > > > > <%= fckeditor_text_field( "ObjectName", "MethodName" %> > > > > An example of how to process text submitted from the editor > > > > A section on the limitations the editor imposes. > > > > > > > > If there is more information that you would like to see, drop me a > > > > line at let me know. > > > > > > > > Thanks, > > > > Josh > > > > > > Excellent Stuff Josh! > > > > > > -- > > > http://dema.ruby.com.br - Rails from a .NET perspective > > > > > > _______________________________________________ > > > Rails mailing list > > > Rails@lists.rubyonrails.org > > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > > > > >_______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
It behaves the same if I save the above code to i.e. test.html in the public folder. BTW: Are you saying that you *can* reproduce the problem at your side, or not? A little confused after reading your post a second time :) Ronny On 9/6/05, Ronny Hanssen <super.ronny@gmail.com> wrote:> > It's a standard inclusion, based on the helper you wrote a howto for. And > it works in IE... > > Here's the page source: > > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" " > http://www.w3.org/TR/html4/strict.dtd"> > <html> > <head> > <title>HIVE > items : edit</title> > <link href="/stylesheets/hive_default.css" media="screen" rel="Stylesheet" > type="text/css" /> > <script src="/javascripts/fckeditor.js" type="text/javascript"></script> > </head> > <body> > > <div class="page_content"><h1>Editing article</h1> > > <form action="/items/edit/1" method="post"> > > <!--[form:article]--> > <p><label for="article_header">Header</label><br/> > <input id="article_header" name="article[header]" size="30" type="text" > value="Test article" /></p> > > <p><label for="article_body">Body</label><br/> > > <textarea cols="40" id="article_body" name="article[body]" rows="20">Here > is the full story.</textarea><script type="text/javascript">var oFCKeditor = > new FCKeditor('article_body'); oFCKeditor.ReplaceTextarea()</script> > > <!--[eoform:article]--> > > <input name="commit" type="submit" value="Edit" /> > </form> > > <a href="/items/show/1">Show</a> | > <a href="/items/list">Back</a> > > </div> > </body> > </html> > > > Ronny > On 9/6/05, Ronny Hanssen <super.ronny@gmail.com> wrote: > > > > BTW: The javascript console has an error message. It goes like this: > > > > Error: FCK.LinkedField has no properties > > Source File: http://localhost:3000/javascripts/editor/js/fckeditorcode_gecko_1.js > > > > Line: 14 > > > > Anyone else experienced the same? > > > > Ronny > > > > On 9/6/05, Ronny Hanssen < super.ronny@gmail.com> wrote: > > > > > > Anyone else having problems with getting it to work in Firefox. The > > > samples work, but not my form according to Josh's description. First of all > > > there is an discrepancy in the naming of the helper function Josh. Just so > > > you know, you change between referring to the fckedit_text_field and the > > > fckeditor_text_field. Not the small difference. However, this was easy to > > > fix. > > > > > > But when I've done everything according to the specs the editor comes > > > up, sorta, in Firefox, and I can write text, but: > > > * It doesn't copy the old text into it > > > * No toolbars are visible > > > But, when testing in IE everything is fine... > > > > > > Anyone else? > > > > > > Ronny > > > > > > On 9/5/05, Demetrius Nunes < demetrius@interface-ti.com.br> wrote: > > > > > > > > Josh Charles wrote: > > > > > I've updated the tutorial I put up last week to reflect some > > > > requested > > > > > changes. The tutorial can still be found at: > > > > > http://www.joshuamcharles.com/rails/fckeditor.html > > > > > > > > > > Things added: > > > > > > > > > > An application helper so that you can just go: > > > > > <%= fckeditor_text_field( "ObjectName", "MethodName" %> > > > > > An example of how to process text submitted from the editor > > > > > A section on the limitations the editor imposes. > > > > > > > > > > If there is more information that you would like to see, drop me a > > > > > line at let me know. > > > > > > > > > > Thanks, > > > > > Josh > > > > > > > > Excellent Stuff Josh! > > > > > > > > -- > > > > http://dema.ruby.com.br - Rails from a .NET perspective > > > > > > > > _______________________________________________ > > > > Rails mailing list > > > > Rails@lists.rubyonrails.org > > > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > > > > > > > > > >_______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
I am not able to reproduce this. I copied the code that you posted into a test view over here, and it worked perfectly. There were no messages on the javascript console. I also ran a search to try to locate this FCK.LinkedField property, but I came up blank. Are you sure you are using the latest version of FCKEditor? On 9/5/05, Ronny Hanssen <super.ronny-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> It behaves the same if I save the above code to i.e. test.html in the public > folder. > > BTW: Are you saying that you *can* reproduce the problem at your side, or > not? A little confused after reading your post a second time :) > > Ronny > > On 9/6/05, Ronny Hanssen <super.ronny-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > It''s a standard inclusion, based on the helper you wrote a howto for. And > it works in IE... > > > > Here''s the page source: > > > > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" > "http://www.w3.org/TR/html4/strict.dtd "> > > <html> > > <head> > > <title>HIVE > items : edit</title> > > <link href="/stylesheets/hive_default.css" > media="screen" rel="Stylesheet" type="text/css" /> > > <script src="/javascripts/fckeditor.js" > type="text/javascript"></script> > > </head> > > <body> > > > > <div class="page_content"><h1>Editing article</h1> > > > > <form action="/items/edit/1" method="post"> > > > > <!--[form:article]--> > > <p><label for="article_header">Header</label><br/> > > <input id="article_header" name="article[header]" size="30" type="text" > value="Test article" /></p> > > > > <p><label for="article_body">Body</label><br/> > > > > <textarea cols="40" id="article_body" name="article[body]" rows="20">Here > is the full story.</textarea><script type="text/javascript">var oFCKeditor > new FCKeditor(''article_body''); oFCKeditor.ReplaceTextarea()</script> > > > > <!--[eoform:article]--> > > > > <input name="commit" type="submit" value="Edit" /> > > </form> > > > > <a href="/items/show/1">Show</a> | > > <a href="/items/list">Back</a> > > > > </div> > > </body> > > </html> > > > > > > > > > > Ronny > > > > On 9/6/05, Ronny Hanssen <super.ronny-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org > wrote: > > > BTW: The javascript console has an error message. It goes like this: > > > > > > Error: FCK.LinkedField has no properties > > > Source File: > http://localhost:3000/javascripts/editor/js/fckeditorcode_gecko_1.js > > > Line: 14 > > > > > > Anyone else experienced the same? > > > > > > Ronny > > > > > > > > > > > > On 9/6/05, Ronny Hanssen < super.ronny-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > Anyone else having problems with getting it to work in Firefox. The > samples work, but not my form according to Josh''s description. First of all > there is an discrepancy in the naming of the helper function Josh. Just so > you know, you change between referring to the fckedit_text_field and the > fckeditor_text_field. Not the small difference. However, this was easy to > fix. > > > > > > > > But when I''ve done everything according to the specs the editor comes > up, sorta, in Firefox, and I can write text, but: > > > > * It doesn''t copy the old text into it > > > > * No toolbars are visible > > > > But, when testing in IE everything is fine... > > > > > > > > Anyone else? > > > > > > > > Ronny > > > > > > > > > > > > > > > > On 9/5/05, Demetrius Nunes < demetrius-fDpYTK8McCzCdMRJFJuMdgh0onu2mTI+@public.gmane.org> wrote: > > > > > Josh Charles wrote: > > > > > > I''ve updated the tutorial I put up last week to reflect some > requested > > > > > > changes. The tutorial can still be found at: > > > > > > > http://www.joshuamcharles.com/rails/fckeditor.html > > > > > > > > > > > > Things added: > > > > > > > > > > > > An application helper so that you can just go: > > > > > > <%= fckeditor_text_field( "ObjectName", "MethodName" %> > > > > > > An example of how to process text submitted from the editor > > > > > > A section on the limitations the editor imposes. > > > > > > > > > > > > If there is more information that you would like to see, drop me a > > > > > > line at let me know. > > > > > > > > > > > > Thanks, > > > > > > Josh > > > > > > > > > > Excellent Stuff Josh! > > > > > > > > > > -- > > > > > http://dema.ruby.com.br - Rails from a .NET perspective > > > > > > > > > > _______________________________________________ > > > > > Rails mailing list > > > > > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > > > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails > > >
Le Mardi 06 Septembre 2005 02:46, Ronny Hanssen a écrit :> BTW: The javascript console has an error message. It goes like this: > > Error: FCK.LinkedField has no properties > Source File: > http://localhost:3000/javascripts/editor/js/fckeditorcode_gecko_1.js > Line: 14 > > Anyone else experienced the same? > > Ronny >Sure. I had that same problem with FCKEditor 2.0 with firefox 1.0.6 on a Gentoo Linux Box. This seems to be a known issue as http://sourceforge.net/forum/message.php?msg_id=3254549 shows. Version 2.0fc doesn''t have this bug. You might also want to have a look at TinyMCE (http://tinymce.moxiecode.com/).
I''ve setup FCKEditor per the instructions. Works fine in IE. But, editor will not load in FireFox 1.06 on my WindowsXP machine. No error messages. Form display with the adjusted width. No controls appear. -Larry On 9/6/05, Dominique Rose-Rosette <ml-nmThH5wfGry/m4Yiz1xkWtBPR1lH4CV8@public.gmane.org> wrote:> > Le Mardi 06 Septembre 2005 02:46, Ronny Hanssen a écrit: > > BTW: The javascript console has an error message. It goes like this: > > > > Error: FCK.LinkedField has no properties > > Source File: > > http://localhost:3000/javascripts/editor/js/fckeditorcode_gecko_1.js > > Line: 14 > > > > Anyone else experienced the same? > > > > Ronny > > > Sure. I had that same problem with FCKEditor 2.0 with firefox 1.0.6 on a > Gentoo Linux Box. This seems to be a known issue as > http://sourceforge.net/forum/message.php?msg_id=3254549 shows. > > Version 2.0fc doesn''t have this bug. > > You might also want to have a look at TinyMCE ( > http://tinymce.moxiecode.com/). > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- Best Regards, -Larry "Work, work, work...there is no satisfactory alternative." --- E.Taft Benson _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
On 9/19/05, Larry Kelly <ldk2005-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I''ve setup FCKEditor per the instructions. Works fine in IE. But, editor > will not load in FireFox 1.06 on my WindowsXP machine. No error messages. > Form display with the adjusted width. No controls appear.I had the same problem whilst playing with this. I eventually tracked it down to the fact that, under Mozilla, it appears the text field / area has to have the same name and id. So, I ended up writing a helper: def fckeditor_field(object,method,options = {}) text_area(object, method, options.merge({ :id => "#{ object }[#{ method }]" })) + javascript_tag( "var oFCKeditor = new FCKeditor(''#{ object }[#{ method }]'');" + "oFCKeditor.ReplaceTextarea()" ) end Hope that helps (note: untested for IE at the moment) Matt
Hi all, I am new to Rails development, I have installed Rails using Gems before but I ran into a new issue today. I get the following error: ERROR: While executing gem ... (Gem::Exception) SSL is not installed on this system Can somebody throw light on what mistake I could have made? Cheers, Harish _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
Harish Krishnan wrote:> Hi all, > I am new to Rails development, I have installed Rails using Gems > before but I ran into a new issue today. I get the following error: > ERROR: While executing gem ... (Gem::Exception) > SSL is not installed on this system > > Can somebody throw light on what mistake I could have made?Let me guess... Debian Stable? If so, apt-get install libopenssl-ruby1.8 and try again. If not... What OS are you using? -- Alex
I will be working on correcting this. The problem is that the way fckeditor changes text fields has changed. When I wrote the tutorial, it depended on the ID field. Now it depends on the name field. This will require some testing and such to work out a cross browser solution. Josh On 9/19/05, Matthew Denner <matt.denner-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On 9/19/05, Larry Kelly <ldk2005-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > I''ve setup FCKEditor per the instructions. Works fine in IE. But, editor > > will not load in FireFox 1.06 on my WindowsXP machine. No error messages. > > Form display with the adjusted width. No controls appear. > > I had the same problem whilst playing with this. I eventually tracked > it down to the fact that, under Mozilla, it appears the text field / > area has to have the same name and id. So, I ended up writing a > helper: > > def fckeditor_field(object,method,options = {}) > text_area(object, method, options.merge({ :id => "#{ object }[#{ > method }]" })) + > javascript_tag( > "var oFCKeditor = new FCKeditor(''#{ object }[#{ method }]'');" + > "oFCKeditor.ReplaceTextarea()" > ) > end > > Hope that helps (note: untested for IE at the moment) > > Matt > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
Sorry to dredge up the past here, but I am running into this same issue, and it is even a little weirder for me. The toolbar does not show up in firefox, and this only happens running under lighttpd. Turn on webrick and the problem goes away. I am not using the helper from the tutorial, and can reproduce this with the test.html above in the thread. I tried changing all the name and id attributes to be the same but no luck. Any insight would be great. Thanks, Dave On 9/19/05, Josh Charles <josh.charles@gmail.com> wrote:> > I will be working on correcting this. The problem is that the way > fckeditor changes text fields has changed. When I wrote the tutorial, > it depended on the ID field. Now it depends on the name field. This > will require some testing and such to work out a cross browser > solution. > > Josh > > On 9/19/05, Matthew Denner <matt.denner@gmail.com> wrote: > > On 9/19/05, Larry Kelly <ldk2005@gmail.com> wrote: > > > I''ve setup FCKEditor per the instructions. Works fine in IE. But, > editor > > > will not load in FireFox 1.06 on my WindowsXP machine. No error > messages. > > > Form display with the adjusted width. No controls appear. > > > > I had the same problem whilst playing with this. I eventually tracked > > it down to the fact that, under Mozilla, it appears the text field / > > area has to have the same name and id. So, I ended up writing a > > helper: > > > > def fckeditor_field(object,method,options = {}) > > text_area(object, method, options.merge({ :id => "#{ object }[#{ > > method }]" })) + > > javascript_tag( > > "var oFCKeditor = new FCKeditor(''#{ object }[#{ method }]'');" + > > "oFCKeditor.ReplaceTextarea()" > > ) > > end > > > > Hope that helps (note: untested for IE at the moment) > > > > Matt > > _______________________________________________ > > Rails mailing list > > Rails@lists.rubyonrails.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060307/18b989a0/attachment.html