Sorry, no posts matched your criteria.

Comments

No Responses to “”

  1. Kiran on May 31st, 2007 10:49 pm

    Nice one… :-)

  2. David R on June 1st, 2007 2:31 am

    Hi Rakshith,

    This is David from India.. I am also working on CF… Great to know that you are a part of CF8 Engineering team… Looking forward to your blogs…

  3. admin on June 1st, 2007 3:49 am

    Thanks David! Good to know that you are working on CF. By the way, do you have the ColdFusion 8 Beta installed? If not, you can get it here.

    Rakshith

  4. Sam Farmer on June 1st, 2007 5:15 am

    Very happy to see you are blogging and that is a great story about working with CF for the first time. Oh, and CF8 is awesome.

  5. admin on June 1st, 2007 5:43 am

    Thanks Sam! I read your blog on eWeek publishing your thoughts on CF8. Thanks for all the feedback.

  6. Charlie Arehart on June 2nd, 2007 7:10 am

    Rakshith, welcome to the blogosphere, and thanks for offering another voice out of Adobe engineering.

    About your entry, though, I’m confused by a couple of things. First, you don’t show any code working with CFCs. Indeed, all you’re showing is writing a string to a file using java objects. You could have done the same with CFFILE. Did you mean to show something more. Did you mean to show more, or just offer this as an example to those who might want to see how “serialization” in java could work from CFML?

    More to the point of the case study and title of the entry though, wouldn’t it instead be the desire (and function) that serialization of the CFCs would happen automatically, by the J2EE engine (JRun or otherwise), when it did whatever it did to replicate sessions across cluster members? Isn’t it just that such replication simply failed before 8 if the session had a CFC, and that now it will work?

    I ask this in humility, with only some knowledge of these things. If you or anyone else can clarify, I’d appreciate it.

    Your code example implies that a manual effort that must be and even if it was changed to really work with CFCs, it would beg the question of when and how one would trigger such code in the event of an attempt at session replication. It just doesn’t seem to me that manual serialization is the solution to be highlighting. Or have I got it wrong?

    Again, I do welcome your blogging and am sure others will benefit. You’ll find the CF community very open and welcoming–but they also aren’t afraid to ask questions–and share tips with each other. :-) Indeed, I have a couple other unrelated thoughts that I’ll share in another comment.

  7. Charlie Arehart on June 2nd, 2007 7:16 am

    Since you mention in an earlier entry that you’re new to CF, I want to also recommend that you check out CFSCRIPT if you’ve not already. Your code above would look a lot nicer to many (and indeed more acceptable to those who are bugged by tags) if you changed it to use CFSCRIPT.

    Indeed, if you come from a java background, you may appreciate how much more closely this looks to how you might do such code in Java (thought it’s definitely CFML, with the use of CreateObject instead of New, and writeoutput to show output to the browser). I’ve also added an htmlcodeformat function, which you could use in your example as it is as well, to make the displayed stacktrace more attractive.

    Here’s how it could appear (don’t know how it will look when Wordpress receives it. There should be an opening and closing CFSCRIPT tag below, which may be stripped, and each statement should be on its own with tabs for indentation):

    try {
    // create the object that will written to the file
    stringobject = CreateObject(”java”,”java.lang.String”);
    stringobject.init(”test string”);

    // create FileOutputStream to point to a file names test.out
    fileoutputstream = CreateObject(”java”,”java.io.FileOutputStream”);
    fileoutputstream.init(”test.out”);

    // create the ObjectOutputStream associated with the above FileOutputStream
    objectoutputstream = CreateObject(”java”,”java.io.ObjectOutputStream”);
    objectoutputstream.init(fileoutputstream);

    // write the java string object using the ObjectOutputStream instance
    objectoutputstream.writeObject(stringobject);

    } catch (Any e) {
    writeoutput(htmlcodeformat(e.stacktrace));
    }

    Again, just trying to share a tip with you and others who may read this.

  8. Charlie Arehart on June 2nd, 2007 7:24 am

    Well bummer. It not only removed the cfscript and indentation, but it also changed the double quotes to character entries (#8221), so one can’t copy/paste it and expect it to work. I won’t try to repost it, but if you have any suggestions about how I might get it to work correctly, I’m happy to help (or if you want to put the corrected code in the entry and point to it as a comment, that may work best, if you think it useful.)

    Finally, I meant to add, for those who may run your code and wonder where the test.out gets created, on a server edition of CF, it would be in a directory like C:\cfusionmx7\runtime\bin.

    In a JRun/multi-instance deployment, it would be in a directory like c:\jrun4\bin.

    Hope that’s helpful.

  9. admin on June 4th, 2007 5:14 am

    First of all, thanks for all the inputs Charlie.

    I have changed my post based on your comments. Most of your comments definitely made sense.

    Yeah, CFCs get replicated in Scorpio during session replication without the user having to do anything specifically for the CFC replication.

    Now that CFCs are serializable, I have a bit of CFML code that persists and reads a CFC instance from a file. I have changed the CFML code to use CFSCRIPT as the code looks a lot nicer with CFSCRIPT.

    I cannot use CFFILE in my bit of code. This is because I am interested in writing objects here to the file which CFFILe does not allow. Or if there is a way to, do share it with me.

    Yes replication simply failed before CF8 if the session had a CFC. It now works in CF8.

    I did not change the code you posted to escape the tags as I have changed my post accordingly.

    I appreciate all your inputs. Keep them coming!

  10. Hemant on June 5th, 2007 1:09 pm

    Nice!

    Dont forget to meet me next week for the next appraisal.

    Your pesky manager :)

  11. admin on June 7th, 2007 6:36 am

    Oops.. Can we not wait until my next post on the ‘Best Man on Earth’? ;)

  12. Bhakti Pingale on June 10th, 2007 9:51 am

    The CF Team definitely rocks!!! And Ofcourse when you have QA buddy like me whose made your feature such a success :)
    For all those who are reading this definitely visit: AJAXforYOU.blogspot.com to see glimpses of “OUR” success story!!!

  13. Eric on June 20th, 2007 6:25 pm

    I am trying to deserialize a cfc to a form field and the serialize it back to a cfc during form processing. Do you know if this is possible? It seems that you would be able to write the object to a string rather than an object and read the string on the processing page but I have been unable to get it working. Any suggestions?

  14. admin on June 22nd, 2007 12:23 am

    I must say, a very intuitive way of using CFC serialization. I am trying to understand the use case here. I am curious to know why do you want take advantage of CFC serialization here.

    At the first glance, this is seems possible to me. Unless the binary data in the form field gets corrupted when it reaches the server over HTTP, I don’t see a problem here. Will it be possible for you to share your code here?

  15. Tim on June 29th, 2007 6:30 am

    Rakshith, thanks for the talk, it was most interesting. Can’t wait to see the examples and presentation!

  16. admin on June 29th, 2007 8:36 am

    Thanks a lot Tim. I truly appreciate the feedback. I am posting my presentation right away.

  17. Dan on June 29th, 2007 1:09 pm

    Great job on the presentation Rakshith!

  18. Anusha on June 29th, 2007 2:19 pm

    Hi Rakshith,
    Your Ajax presentation was one of the best talks at CFunited 2007. Very well done. Thanks for sharing a wealth of info today.

  19. admin on June 29th, 2007 9:14 pm

    Thanks a lot Dan!

  20. admin on June 29th, 2007 9:56 pm

    Thanks a lot Anusha! The feedback matters lot to me. I really appreciate it. It will surely help me gain more confidence and do better. Thanks again.

  21. Ashwin on June 30th, 2007 6:02 am

    Hey Rakshith, judging from the responses the session went down really well – congratulations!

  22. Kevin Roche on June 30th, 2007 6:26 am

    I enjoyed your presentation and am really looking forward to using this new functionality in CF8. It will allow me to do AJAX things I would not have dreamt of before.

    Kevin

  23. admin on June 30th, 2007 7:49 am

    Thanks a lot Ashwin. Thanks for all your inputs you gave me for the presentation.

  24. admin on June 30th, 2007 7:52 am

    Thank you Kevin. Let me know about your experience using AJAX features in CF8.

  25. Javier Julio on July 3rd, 2007 7:25 am

    Rakshith, as I told you at the conference your presentation was top notch. I’m looking forward to the demo application download as well! I wanted to post a comment asking if you plan on updating CF8’s YUI library to the latest version?? If I’m correct the latest is 2.2.2. There are some important functions in the YUI dom and event library since the last release for example the onDomReady method. Just wondering if you will be updating CF8 before its release with the latest YUI version. Thanks again for the presentation and all your hard work on this awesome feature!

  26. Phillip on July 3rd, 2007 8:41 am

    This was an outstanding presentation. I am anxious to see the examples posted.

  27. Manjunath on July 3rd, 2007 11:18 pm

    Above responses infer a job well done.. I really appreciate your efforts. I know there is many more to come, its just a beginning.. Congrats and Good Luck !!

  28. admin on July 4th, 2007 12:30 am

    Thanks a lot Xavi! I will put up the demo application soon. Reached back home yesterday and am jet lagged a bit. Yes, the latest YUI version is 2.2.2. CF8 currently is on version 2.2.0. I don’t think we will be looking at an upgrade at this point of time because an upgrade would mean quite a lot of testing effort. But again, you could check to see if YUI 2.2.2 works for you with CF8.

    Thanks again Xavi. It was nice talking to you at CFUnited.

  29. admin on July 4th, 2007 12:49 am

    Thanks Philip. I will come up with a detailed series of posts on building the scorpio mail application.

  30. admin on July 4th, 2007 12:51 am

    Thanks Manjunath. Thanks for all those words of encouragement.

  31. Dav R on July 12th, 2007 4:03 am

    Great Intro Rupesh!!.. Please blog more…

  32. Dav R on July 12th, 2007 4:05 am

    Sorry Rakshith,

    Wrongly typed your name as ‘Rupesh’ as I am viewing his blog in another window…

    Again, Its a Great intro Rakshith, We want you post more articles in your site….

  33. Rakshith on July 12th, 2007 12:39 pm

    Thanks Dav. I will be posting more articles over the next few days.

  34. Shahbaz Mirza on August 1st, 2007 8:35 am

    Hello

    I am very interested in the AJAX implementation in CF 8… I have an application running using CF 7 and ‘Prototype’ flavor of ajax.

    An alomst imediate need came up for me to push data to the client. Is this something available in CF 8 and/or something Adobe is looking into?

    Thanks!

    Shahbaz Mirza

  35. Rakshith on August 2nd, 2007 5:33 am

    Shahbaz,
    Nice to know that you interested in the Ajax implementation in CF8.

    We don’t have anything in Ajax support in CF 8 for pushing data to the client.

    CF 8 has Flash Media Server Gateway or the FMS Gateway using which you can push data to the client.
    You could also use the LiveCycle Data Services in CF 8 to push data to the client.

    Thanks..

  36. xavy on August 2nd, 2007 3:04 pm

    i saw screens shots of the scorpio mail application and looks very promising. Is the code for this application available for download?

    Thanks in advance

  37. Michael White on August 6th, 2007 6:46 am

    Can you believe with all the talk about PDF, exchange, speed, etc. with CF8 I FORGOT about the FCK Editor being added. Thanks for the reminder, I’ll try it out today!

  38. Jason McMinn on August 6th, 2007 7:48 am

    Live demo or screen shots??

  39. Patrick Whittingham on August 6th, 2007 9:08 am

    Can the “CFAJAXPROXY” tag handle cross-domain issues or it this CFC on the same app server which sent the original html/css/js?

  40. Rakshith on August 6th, 2007 11:37 pm

    Patrick,
    The CFAJAXPROXY will have all the security restrictions associated with any Ajax call. The CFC must be available on the same domain that served the original request.

    Thanks..

  41. Rakshith on August 6th, 2007 11:41 pm

    I will include it in the above post soon.

  42. chris on August 6th, 2007 11:55 pm

    Yes, I would like to see an app in action

  43. CSmith on August 9th, 2007 5:51 am

    I cannot fathom why they used FCKed instead of TnyMCE.

  44. Ernest Breau on August 10th, 2007 8:11 am

    OT:
    I dont know where to post this to find an answer since prforum is down.

    So if you could kindly answer or direct me to the right place would be greatly appreciated.

    I need to bring a cfwindow to the front.
    ColdFusion.Window.show does not do this.

    Thanks,
    Ernest Breau

  45. Rakshith on August 11th, 2007 12:02 pm

    I will try to answer your question..

    Are you sure ColdFusion.Window.show does not bring the window to the front?

    You can bring a window to the front using the Ext API Ext.DialogManager.bringToFront(targetWindow)..

    You can get the targetWindow from the ColdFusion API ColdFusion.Window.getWindowObject(windowname).

    Hope this helps..

  46. Adam Fairbanks (Tidy Internet) on August 13th, 2007 8:52 am

    Brilliant! Thank you for connecting the APIs.

  47. Adam Fairbanks (Tidy Internet) on August 13th, 2007 10:44 am

    Thank you for the very concise summary of fckeditor commands. Very useful.

    One cool thing you can do with the xml files is make them dynamic by naming the xml files as cfm files:

    fckstyles.xml.cfm
    fcktemplates.xml.cfm

    This allows you or a user to add/edit a style or a template through a UI without having to edit the fckstyles.xml or fcktemplates.xml files directly. The styles and templates could be stored in the database, and the fckstyles.xml.cfm and fcktemplates.xml.cfm files could query the database and output the corresponding xml.

    You could also cache the queries (and refresh the cache when the styles or templates are updated), so the xml file doesn’t run the query every time.
    __

    Another option to allow an xml file to run CF code is to leave the extension as .xml and add an .xml servlet mapping to the CF web.xml file.

    Default file location on the server:

    C:\CFusionMX7\wwwroot\WEB-INF\web.xml

    CfmServlet
    *.xml

    The “16″ in macromedia_mapping_16 would be the next serial number after the last mapping (in this case, macromedia_mapping_15) in the web.xml file.

    Note, the url-pattern could be anything (e.g., *.rakshith), which would make fcktemplates.rakshith work.

  48. Adam Fairbanks (Tidy Internet) on August 13th, 2007 10:54 am

    Looks like the xml for the servlet mapping in my last comment didn’t come through. Trying again:

    <servlet-mapping id=”macromedia_mapping_16″>
    <servlet-name>CfmServlet</servlet-name>
    <url-pattern>*.xml</url-pattern>

  49. Chris on August 21st, 2007 11:13 am

    Do you know how to intercept the X close button on the window to say, redirect to a function that will fade out the window or another effect?

  50. suranjit on September 11th, 2007 1:49 am

    title text is showing “blank”.i want to give “rxonline”

  51. Richard Davies on September 13th, 2007 2:06 pm

    There’s an error in your description of the “fontsizes” setting:

    fontsizes : A comma separated list of the different font sizes that will listed in the font size drop down of the rich text editor. Each value in the list must be of the format “Font Size in pixels/ display text” format.

    Actually, the font size value is not in pixels. It refers to the old size attribute of the font tag (i.e. 1-7).

  52. hibiscusroto (Chris Vigliotti) on September 14th, 2007 6:48 am

    I’d love to see the source code for this :)

  53. thng on September 26th, 2007 1:07 pm

    Hi,

    fckeditor does not work in Safari and Opera.

    How can I fix this problem?

    thanks!

  54. Dave Cozens on October 2nd, 2007 11:49 pm

    Regarding “…all the security restrictions associated with any Ajax call. The CFC must be available on the same domain that served the original request”…

    But you can make the CFC make CFHTTP calls to a remote server on a different domain.

    i.e.
    -cfajaxproxy calls books.cfc
    -books.cfc calls http://www.otherdomain.com/somefeed
    -books.cfc returns data to cfajaxproxy
    -cfajaxproxy makes data available through JS

    It’s like some crazy kind of double proxy…

    Dave

  55. vishnuprasad on October 3rd, 2007 12:46 am

    Hi
    Nice blog keep it up.
    Love to see more article

    I am Vishnu Coldfusion developer from india .

    Regards
    Vishnu
    http://www.wrvishn.wordpress.com

  56. Abul on October 8th, 2007 5:32 am

    I was their and your presentation was wonderful.

  57. Rakshith on October 8th, 2007 6:59 am

    Thanks a lot Abul! Thanks for the feedback.

  58. Rob Gonda on October 8th, 2007 6:49 pm

    Thanks mate… Thanks for attending, and moreover, good chat after my session. You’re a great asset my friend, Adobe’s lucky to have you around.

  59. Rakshith on October 8th, 2007 10:27 pm

    Thanks Rob.. It was really nice speaking to you as well.. I always wanted to meet you and talk to you sometime.. Thanks to MAX and you..

  60. Lomeos on October 9th, 2007 8:50 am

    reconstructing an object seems to fail when there’s an array variable in it. ColdFusion gives a ‘coldfusion.runtime.Array’ error.

    ‘java.lang.ClassNotFoundException: coldfusion.runtime.Array’ according to the stack trace.

    Writing goes fine. Any idea why this is?

    Cheers

  61. Lomeos on October 9th, 2007 10:46 am

    The same thing applies to queries. Apparently only strings, structs and objects are valid during the readObject().

    Cheers

  62. G on October 16th, 2007 10:26 am

    How do you set the value of the editor using Client Side Javascript?

  63. Akira on October 16th, 2007 1:32 pm

    Thank you very much for this tutorial.

    I have a question though, how do you remove the underline on the href? I’ve tried adding text-decoration:none to x-grid-col but it just ignores this setting.

  64. Rakshith on October 17th, 2007 5:44 am

    Thanks Akira.

    Am not very sure of the style that causes the underline to appear at this point of time.

  65. Rakshith on October 17th, 2007 5:46 am

    Thanks Adam!

    Thanks Vishnu. Nice to know that.

  66. Rakshith on October 17th, 2007 5:52 am

    @CSmith – We decided to go with the FCKEditor some time last year. Lots of factors came in to decide the editor of choice, of which support from Frederico of the FCKEditor was one.

    @Richard – Thanks for the input. I will correct the post.

  67. Rakshith on October 17th, 2007 5:55 am

    The version of FCKEditor(latest at the time of ColdFusion release) shipped with ColdFusion does not support safari or opera.

    FCKEditor editor has version 2.5 beta now which has support for both safari and opera. We have plans to integrate with a stable version of 2.5 soon.

  68. Rakshith on October 17th, 2007 5:58 am

    @ G – Here’s how you can set the value of the editor using client side JavaScript.

    This is not a documented feature though.

    var editorinstance = ColdFusion.objectCache['nameoftextarea'];

    var editor = FCKeditorAPI.GetInstance(editorinstance.richtextid);

    editor.InsertHtml(”abc”);

  69. Rakshith on October 17th, 2007 6:03 am

    @ Dave – The are specific reasons why each and every browser has this same domain access security set up. The browsers do not want any malicious JavaScript to make calls to other domains possibly getting harmful content or transferring valuable JSON data in the JavaScript to these domains.

    A proxy on the server side is not at all an issue because the fetch is happening at the server side and not from any third party JavaScript.

  70. Steve Judd on October 17th, 2007 7:17 am

    Any insight on using the cftextarea richtext within a cflayoutarea. It loads fine and works when the page is initially loaded. However, I have the form submitting from the cflayout area, and then redisplay the form and I get an error “The textarea with name or ID set to cf_textarea123456789 was not found”

  71. Scott C on October 17th, 2007 12:56 pm

    Can you tell me where you uploaded the code? I’m dying to get at it. I’m implementing same thing with the open source IMAP cfc and just cannot get the messages grid to link up with the folder tree.

  72. Rakshith on October 17th, 2007 10:48 pm

    Suranjit, which title text are you talking about? Let me know.

  73. Rakshith on October 17th, 2007 11:35 pm

    @Steve – I tried the case you have mentioned. I dont seem to face any issue out there. Can you explain the exact case?

  74. Rakshith on October 17th, 2007 11:47 pm

    Guys,
    I too wanted to post the code for this application. But realized that there are issues with the app on IE.

    That’s the reason why I did not put the code out here. I will work on making the app run on IE and then will post the code.

    @ Scott : Explain the issue you have been facing. We should be able to get that working.

  75. Rakshith on October 17th, 2007 11:50 pm

    Lomeos,
    Your observation is right. Unfortunately cfc serialization fails with Array, Date, DateTime or Query objects within the CFC. We are aware of this issue and will come up with a fix soon.

    Thanks for pointing it out!

  76. Mike on October 22nd, 2007 1:08 am

    Im on a shared hosting platform and im guessing that i wont be able to define a custom toolbar without asking my host to add it to the master config file?

    can i add it locally somewhere?

    Thanks`

  77. Rakshith on October 22nd, 2007 1:29 am

    @Mike – Do have a look at the basepath attribute on the cftextarea tag. The basepath will let you specify the root directory from which the editor will pick up all the required JavaScript and configuration files.

    You can point the rich text editor to use a local directory as the active editor directory with this attribute.

  78. Mike on October 22nd, 2007 3:21 am

    thanks Rakshith, does this mean that i can simply add the config file into a custom dir and then refer to it in the basepath attribute – ie will it pick up the rest of the files from the default location or do i need to add them all in there?

    thanks again :)

  79. Rakshith on October 22nd, 2007 3:52 am

    @ Mike – Not just the config file, you will have add them all in there.

    Thanks Mike.

  80. noname on October 26th, 2007 10:13 am

    HELP! Rakshith, I can’t figure out why my basepath won’t work. Even when I rename the config file … located at \Inetpub\wwwroot\CFIDE\scripts\ajax\FCKeditor\fckconfig.js it STILL loads the textarea … I did a search for the “Real Config” and nothing, it’s the only one. How is it possible that it’s still working? I cleared my cache and restarted the service. :(

  81. noname on October 26th, 2007 10:30 am

    Sorry, figured it out. I had my CFIDE in IIS mapped to the wrong folder. It was my testbed, I was trying some things with network drives, and forgot to make the change. :/

  82. Joshua Cyr on November 27th, 2007 12:33 pm

    Hi Rakshith,

    Useful post so far! I want to modify the toolbar without uploading an entire new set of files. Theoretically I should be able to do something like:

    oFCKeditor.Config["ToolbarSets"]["Basic"] = [
    ['Bold','Italic','Underline'],
    ['OrderedList','UnorderedList'],
    ['TextColor','BGColor']
    ];

    Where oFCKeditor is the instance name. However I can’t figure out how the instances of the editor are named. Can you let us know what JS function to run to get the proper instance so that we can use the many js built in functions of FCK?

    Also, perhaps it is possible via JS to override the config path al la this FCK js option:
    http://wiki.fckeditor.net/Developer%27s_Guide/Configuration/Configurations_File

  83. Joshua Cyr on November 27th, 2007 12:49 pm

    strike that. I see in comment 13 you do answer how to get the instance. It is just not returning any properties.

  84. Alsa on November 29th, 2007 8:16 am

    Richtext works fine for me but it displays the paragraph mark on the web, like:
    This is the text entered by users as it appears on the website

  85. Alsa on November 29th, 2007 8:18 am

    The “” marks do not display on your site but it shows on my site when I used richtext.
    Alsa

  86. AJ on November 30th, 2007 9:24 am

    Rakshith: any ETA on that fix?

    Possible Workaround
    We’ve run into the same issue with arrays/queries in our CFCs, preliminary testing shows that they can be put in a CFC function if the variable is declared as a var at the top of the function (of course they won’t get serialized then).

    Our workaround was to change all the arrays in the CFCs variables scope to lists and to stuff query objects into structs.

    To avoid changing the interface of the CFC you can convert between types. The caveat is that the unsupported types need to be declared as var.

    For example:

    … stuff list into array

    We also have some cfquery tags in some functions. In order for those to work the name of the cfquery is declared as:

    YOUR QUERY HERE

    This of course is only really feasible if you have only a few existing CFCs with this issue.
    So bottom line, you can’t serialize the types mentioned above, but it appears you can still use them in the CFC if they are declared var.
    Hope it helps if you can’t wait for the fix.

  87. AJ on November 30th, 2007 9:28 am

    well, it took out my example tags, hope the post still makes sense. Mmmmh, maybe if I leave off the tag delimiters?

    example:

    cfset var returnArr = ArrayNew(1)
    …stuff list into array
    cfreturn returnArr

    query example:

    cfset var qryName = “”
    cfquery name=”qryName” datasource=”dsn”
    YOUR QUERY HERE
    /cfquery

  88. Brook on December 2nd, 2007 7:27 pm

    Did this get fixed? Can serialization work with arrays/queries etc?

  89. Rakshith on December 2nd, 2007 11:17 pm

    Joshua,
    Yes, you can get to the editor’s instance using comment 13. But I do not know how you could override the config properties defined in FCKConfig.js using the editor’s instance at this point of time. I will get back to you if I get to know how to achieve that. Thanks!

  90. Rakshith on December 2nd, 2007 11:19 pm

    Alsa,
    I did not understand the problem you are facing. Can you please explain more on that?

  91. Rakshith on December 2nd, 2007 11:28 pm

    Brook,
    We have a bug logged in our system on this and will try to fix the issue soon. That is the update on the issue for the moment. Will let you know once its fixed.

  92. Mike on December 3rd, 2007 4:56 am

    Hello again,

    Im wondering if/how the cftextarea deals with the old file upload system that is in fckeditor – is this available? if not is it something that will become avaiable?

    Are there any work arounds to allow image uploading in the text?

    Thanks again

    Mike

  93. Adam Spigel on December 5th, 2007 2:47 pm

    Really would like to test out the new 64 Bit JVM this month – about to purcahse a Dell 2950 – 32 GB memory, CF8, etc. I would really put it through its paces

    Thanks, Adam

  94. Rakshith on December 5th, 2007 10:28 pm

    We would love to hear your feedback and comments.

    Thanks Adam!

  95. cfwindow url binding: bind on window source : The Sprint on December 7th, 2007 2:41 am

    [...] source attribute on the CFWINDOW tag can be used as a url bind. For more on binds, refer to this post of [...]

  96. Sam Curren on December 7th, 2007 5:04 am

    I use jQuery for nearly all my js needs, and it has cross browser event handling and triggering baked in.

  97. Rakshith on December 7th, 2007 5:14 am

    Right Sam. You do not need to worry about firing events if you are working with frameworks such as jQuery.

  98. Todd Rafferty on December 9th, 2007 6:43 am

    Couldn’t we just make CFDIV the new CFSection or something?

  99. Rakshith on December 9th, 2007 10:13 pm

    Well, yes. CFDIV may well be the CFSection with HTML 5.

  100. Todd Rafferty on December 10th, 2007 7:19 am

    I’ve run into strange things with the FCKEditor. Despite that it’s built into CF8, we use the full version of FCKEditor than the one that’s built in.

    The filemanager and some other things just flat out refuses to work consistently. I’ve had it work flawlessly on one box and completely bomb on another and it’s the same code, zero modifications. So strange.

  101. Rob Huddleston on December 10th, 2007 1:27 pm

    Thanks, Rakshith. I would have missed that article.
    However, before we get too far ahead of ourselves worrying about CF inoperability, remember this line from the article: “current estimates have work finishing in around ten to fifteen years.” So what happens to CFDiv will most likely be an issue for the developers of CF20…

  102. Mike B on December 10th, 2007 8:34 pm

    @Todd Rafferty
    Sounds like permission problems to me and nothing to do with FCKeditor

  103. Rakshith on December 10th, 2007 10:17 pm

    This surely is a strange issue. I guess Mike is right here. If it is really an issue with the FCKEditor,
    the upgrade and the other configuration changes that will go in, will probably fix this issue.

  104. Rakshith on December 10th, 2007 10:22 pm

    True Rob. I love the tags I have worked on. Long live CFDIV! :)

  105. Todd Rafferty on December 11th, 2007 6:29 am

    Can’t really be a permission problem if CF is setup to take full advantage of the directories it needs can it? Every time we ran the FileManager, we’ve had weird XML Errors. I plan on taking a look at the new version and Rakshith, I don’t mean to dump about FCKEditor on your blog. It’s a fine editor, just has a few quirks.

  106. Joshua Cyr on December 11th, 2007 7:09 am

    Todd,

    Is one of your servers using a different version of CF? I found that a free version of CF I had from devnet (I think) added its own extra header to all pages, which messed up my xml. Thus everything worked great except anything looking for proper xml from the server generated by CF. That free version was for dev stuff, and not for production, but I still had to get rid of it because of that, and just use the developer edition for my local use now.

  107. Mrinal Wadhwa on December 12th, 2007 1:42 am

    Look forward to your talk

    Mrinal Wadhwa
    Manager, Bangalore Flex User Group

  108. Rakshith on December 12th, 2007 5:13 am

    Thanks Mrinal. I met you at MAX. Looking forward to meet you again.

  109. ColdFusion 8: Enable File, Image and swf upload in the rich text editor in five steps : The Sprint on December 14th, 2007 7:12 am

    [...] This will give out the rich text editor as we know. More details about the usage of the tag can be found here. [...]

  110. Azadi Saryev on December 14th, 2007 7:58 am

    Great post,Rakshith! And perfect timing (well, at least for me… :) )

  111. Anuj Gakhar on December 14th, 2007 9:03 am

    That is really nice. I remember struggling once to do that. Thanks.

  112. Dan Sorensen on December 14th, 2007 9:43 am

    Thank you for sharing the details of this option. I’ve been waiting to see functionality this for some time. :-)

  113. Rakshith on December 14th, 2007 11:12 am

    Dan, Anuj and Azadi – Thank you. Am glad this post will be of help.

  114. Michael Santoroski on December 14th, 2007 2:24 pm

    FCKeditor as shipped with CF8 doesn’t work with Safari. I’d love to find a way to upgrade the built in FCK to the latest on on their site (version 2.5). Does anyone know how to do that? Thanks, and this upload will be a big help too!!

  115. Rakshith on December 14th, 2007 7:22 pm

    @Michael – Thanks Michael. FCKeditor 2.5 does work well on safari and opera. We are already working on the upgrade to 2.5.

  116. Shigeru on December 15th, 2007 2:12 am

    About “connectors/cfm/connector.cfm”,

    Line 82 should be below
    userFilesServerPath = userFilesPath & url.type ….

    Live 100 should be below

    connector.cfm automatically create directories like File,Image,Flash,Media. Why not upload.cfm??

  117. Shigeru on December 15th, 2007 2:13 am

    Hmmmm… tag was deleted

    Line 100 should be below
    cfset currentPath = serverPath

  118. Rakshith on December 15th, 2007 4:14 am

    Wow. That’s surely a bug in FCKeditor. Nice find Shigeru. We got to report this bug to FCKeditor. The bugs can be reported at http://dev.fckeditor.net. Can you go ahead file a bug out there or do you want me to file one. Let me know.

    Thanks Shigeru.

  119. Shigeru on December 15th, 2007 6:18 pm

    Hi, Rakshith.

    Nice to see you. Could you log this bug instead me?

  120. Dave Phipps on December 16th, 2007 3:17 pm

    Hi,

    I found having to use the UserFiles folder with the Image, File etc subfolders a little restrictive so I modified the connector to allow any directories to be specified. For example in our system we have an images dir, a downloads dir. These are both in the webroot. I then specify ‘/’ as the UserFiles path and there are some extra settings that can be added to the config.cfm to specify the subdirectories to use for each type (file,image, flash etc). If anyone wants to take a look let me know.

    Cheers,

    Dave

  121. Rakshith on December 17th, 2007 1:00 am

    @ Shigeru : Sure. I will log this one. So you are saying that by making this change, the creation of directories issue will be solved, right?

    @ Dave : Thanks for that Dave. If it makes sense for us to contribute this change back to FCKeditor, we can do that as well. Let me know.

  122. Dave Phipps on December 19th, 2007 10:38 am

    @Rakshith : I found most of the code on the FCKeditor site so I think they are already aware, but it took quite a bit of digging to find it.

    I will gladly share the code with the cf community though. Haven’t really got anywhere to upload it to at the moment. I also need to go through and document the changes that I made.

    Cheers,

    Dave

  123. Mike Sharp on December 20th, 2007 9:06 am

    Rakshith,

    Can these files be added to a local copy, ie like you mention here….
    http://www.rakshith.net/blog/?p=22 comments 18 ish – as in to the files specified in the basepath, im thinking this as its shared hosting that i am on :)

    thanks again

  124. Dave Phipps on December 20th, 2007 10:38 am

    Is it possible to us the AjaxLink function in a cflocation call. I am seeing problems resulting from a cflocation after a form submission – if the form is then submitted again the whole page is refreshed instead of just the cfdiv containing the form.

    Dave

  125. Ryan on December 20th, 2007 1:27 pm

    Thanks for the explination, it helps a lot.

    How do I get the imported css to work when the grid is being called up inside a cflayout?

  126. Tom Barclay on December 20th, 2007 3:15 pm

    This just saved me several hours of work and I really appreciate it. Merry Christmas and thanks.

  127. Rakshith on December 20th, 2007 11:37 pm

    Yes Mike. You can use the basepath attribute on a shared hosting and point to your local copy of the editor files.

  128. Rakshith on December 20th, 2007 11:39 pm

    Thanks Tom. I posted it for the very same reason. – Save others the hours of effort I put in to get this working.

    Merry Christmas to you as well.

  129. Rakshith on December 20th, 2007 11:41 pm

    Thanks Ryan. It should be the same procedure. Do you see an issue getting it to work? Let me know.

  130. Mike Sharp on December 21st, 2007 2:12 am

    @Rakshith,

    Thanks for the replies – i have it almost working, but am seeing some strange behaviour.

    The upload works a treat – and i can see the files uploaded via my ftp client fine, but the file browser isnt.

    On investigation the file browser is looking outside of the wwwroot file. When i create a folder in the filebrowser window a folder called wwrootImage is created next to the wwwroot folder.

    Im using the files in the folder referenced by the baseref attribute

    am i missing something?

  131. Mike Sharp on December 21st, 2007 2:43 am

    I have replaced your connector.cfm with an original and it works – i fear you may have missed something, – a couple of lines were different :)

  132. Ryan on December 21st, 2007 2:02 pm

    I guess I did not explain myself very well. The site is set up so that the index page is just the header, menus and footer with an empty content space in the middle. All these areas are defined with the cflayout tags and I have individual content pages that are being called up inside the content area. The problem occures when I try to open the cfgrid inside the index page content area. The cfajaximport tag seems to have no effect inside the index page but when the content page is opened on its own everything works as It should.

  133. Mike G. on December 23rd, 2007 6:41 am

    I’m submitting some code to you guys. I been working on this for 8 plus hours. I cannot get either richtext=”true” or tinymce to work with this cf8 program. I have a feeling the grid is messing with it, because when i took out the grid and dropped references to it in the cftextareas it worked. very frustrated.

    The row action for #Counter# is:
    #Form.gridCFR.rowstatus.action[Counter]#

    DELETE FROM Table_CFR
    WHERE CFR_ID=

    UPDATE Table_CFR
    SET CFR_Sub_Part_ID=#Form.gridCFR.CFR_Sub_Part_ID[Counter]#,
    CFR_Title_ID=#Form.gridCFR.CFR_Title_ID[Counter]#,
    Section=’#Form.gridCFR.Section[Counter]#’,
    Sub_Section=’#Form.gridCFR.Sub_Section[Counter]#’,
    Contents=’#Form.gridCFR.Contents[Counter]#’,
    Comments=’#Form.gridCFR.Comments[Counter]#’
    WHERE CFR_ID=

    INSERT into Table_CFR (CFR_Sub_Part_ID, CFR_Title_ID, Section, Sub_Section, Contents, Comments)
    VALUES
    (
    #Form.gridCFR.CFR_Sub_Part_ID[Counter]#,
    #Form.gridCFR.CFR_Title_ID[Counter]#,
    ‘#Form.gridCFR.Section[Counter]#’,
    ‘#Form.gridCFR.Sub_Section[Counter]#’,
    ‘#Form.gridCFR.Contents[Counter]#’,
    ‘#Form.gridCFR.Comments[Counter]#’
    )

    Error: #cfcatch.detail#

    SELECT *
    FROM dbo.Table_CFR
    ORDER BY “CFR_Sub_Part_ID” ASC, “Section” ASC, “Sub_Section” ASC

    SELECT *
    FROM dbo.Table_CFR_Sub_Part

    SELECT *
    FROM dbo.Table_CFR_Title
    ORDER BY “Title” ASC

    tinyMCE.init({
    mode : “textareas”,
    theme : “simple”
    });

    —>

  134. Steve on December 28th, 2007 3:28 pm

    I’ve got multiple sites that are on 1 server that I would like to use the image/file uploading for. I followed all the steps and tried to update it via the comments posted above but for some reason I can only get the files to post to C:\inetpub\wwwroot\userfiles\ and not the actual folder the sites sit in. On my server I have D:\websites\site1.com\, D:\websites\site2.com\, D:\websites\site3.com\, etc… and would need each site to contain its OWN userfiles.

    I’ve accomplished this on CF7 and back installing individual copies of fckeditor on each site and coding the pages manually but wonder if its possible to do in CF8?

  135. Rakshith on January 1st, 2008 8:27 pm

    @Mike – Thanks for pointing out the difference in connector.cfm. I will see what is the exact change in the latest connector.cfm and will include the same in this version of connector.cfm.

    Are you still facing an issue with grid and rich text area?

    @Steve – In the config.cfm under the upload directory, you can change the default value of userFilesPath which points to “/userFiles” to what is required in your case. Let me know if this helps.

  136. Marxan on January 3rd, 2008 6:30 am

    I have a problem with image upload, when I upload a file, it is added in the Ressources browser. But when I try to put it in the editor I get an blank image with a red cross inside. Does someone has an idea what could be the problem?

    Thanks in advance

  137. Mrinal Wadhwa on January 4th, 2008 1:20 am

    I enjoyed your presentation a lot

    Thank you,
    Mrinal

  138. Rakshith on January 4th, 2008 1:25 am

    Hey thanks Mrinal. A good conference by the way. Well done.

  139. WebMantras » How to customize FCKeditor integrated in ColdFusion 8? on January 4th, 2008 11:48 am

    [...] Rakshith from the Adobe engineering team developing ColdFusion has posted the following entries: [...]

  140. Tom Mollerus on January 8th, 2008 10:28 am

    If using one of the FOSS spellcheckers isn’t an option, you can integrate Foundeo’s Spell Checker with FCKEditor. While you do need to pay for it, Foundeo’s product is nice because the dictionary is a cross-platform .jar file.

  141. jeff mayer on January 8th, 2008 11:46 am

    Really interested in seeing this as well. Any idea when this will be released? Has the beta testing started for this. I just signed up.

  142. Rakshith on January 8th, 2008 9:44 pm

    @Tom – Thanks for the info. We will surely take a look at this one.

  143. Rakshith on January 8th, 2008 9:50 pm

    Marxan,
    Look for your image files in the upload directory (\userFiles\ by default) to check if they really got uploaded to the server. If they are present, click on the source button of the editor to check if the source is pointing to the right path on the server.

    Hope it helps.

    Thanks!

  144. Rakshith on January 8th, 2008 10:24 pm

    Yes Jeff. The beta testing started a couple of weeks ago.

  145. Gavy on January 14th, 2008 10:38 pm

    just tried the editor and used the basepath attribute but when i try upload the pictures, it says you do not have permision to upload, anyone knows how to do it?

  146. Rakshith on January 15th, 2008 4:47 am

    Gavy,
    I have a post describing how you could enable uploads. Take a look at that.

    Thanks

  147. Rob on January 16th, 2008 7:27 am

    saved my day. thanx

  148. Ben Nadel on January 17th, 2008 7:24 am

    Congratulation on passing and with Advanced status, no less!

  149. Dan Vega on January 17th, 2008 7:28 am

    Congratulations! I find that most pure Java guys look down on ColdFusion with the though of why not just use Java. It is nice to see someone of your skills embrace it! Now we just all have to start studying for the week long test that will be CF8 :)

  150. Andy Hudson on January 17th, 2008 9:38 am

    Congratulations on passing your certification. I am also thinking of doing the exam, but with a 4 month old son, I’m struggling to find time to prepare for it.

    With no preparation, I got 62% using CFExamBuster which has 12 example exam sheets.

    How many hours do you think you needed to pass the exam?

  151. Rakshith on January 17th, 2008 10:01 pm

    Thanks Ben! Hey congratulations to you on becoming an Adobe Community Expert for ColdFusion. You deserve it!

  152. Rakshith on January 17th, 2008 10:27 pm

    Thanks Dan! Yes, the CF8 test is going to be really challenging!

  153. Rakshith on January 17th, 2008 10:44 pm

    Thanks Andy.

    A 62% without preparation is definitely good.

    My most important resource for preparing was ColdFusion MX 7 Certified Developer Study Guide by Ben Forta. I put in two hours each day (a bit more on weekends) for around ten days.

    You could spread it out over more days but just make sure you go back and glance through all you that you have studied or prepared on the day before you take the certification. That would be my tip.

    All the best Andy! Let me know how it goes.

  154. Peter Bell on January 18th, 2008 1:06 am

    Hey – congratulations. Always nice to have another convert! It’s great you took the time out of your spare time to do this.

  155. Rakshith on January 18th, 2008 3:36 am

    Thanks Peter! Looking forward to meet you at CFUnited Europe.

    And congratulations to you for becoming an Adobe Community Expert.

  156. Mel on January 18th, 2008 2:37 pm

    I would like to test the 64-bit windows beta, but the Adobe link for signing up is a broken page. What is the next step.

  157. Dan on January 18th, 2008 2:59 pm

    Hey Rakshith, How does one go about taking the exam? (registration and locations)

  158. tony petruzzi on January 19th, 2008 7:35 am

    this sounds dumb but, I would like a CGI variable that would return the server’s ip address not resolved host name. Could you include an HTTP_ADDR variable like the REMOTE_ADDR one?

  159. Rakshith on January 20th, 2008 11:45 pm

    Dan,
    checkout Pearson VUE’s website – http://www.pearsonvue.com That should help you with all the registration and location.

  160. Amir on January 23rd, 2008 5:02 am

    So is this still a problem?. I was looking fwd to clustering up a few instances on CF8 (on the same box) but we use session vars everywhere and this could be a show stopper :-(

  161. Matt on January 30th, 2008 10:13 am

    Have have something really bizarre happening. The editior doesnt always load first time onto my page. You sometimes have to refresh the page to get it to load. Any ideas why this would be happening?

  162. Rakshith on January 30th, 2008 9:47 pm

    Hmmm.. Thats weird. Matt, what else do you have in the page apart from the CFTEXTAREA tag?

  163. Marcus on January 31st, 2008 11:40 pm

    I have my ‘required’ attribute on. How do I change the text of the javascript alert message that pops up when the field is empty. The default message is “Error in commen text”.

  164. Branden deBuhr on February 4th, 2008 10:01 pm

    I am trying to do essentially the same thing as steve is with regard to uploading image files into multiple sites all with different folder/drive locations. I know you said you could change the variable or location in the config.cfm file. But could you be more specific on the type of variable I can set in the config.cfm file as well as in my application settings for my website? So for example, on the page where I call the fckeditor, I’d like to do something like and then call that variables.folderpath inside the config.cfm file. But since the fckeditor is in my root path, can I pass in that variable?

    Please be specific on variables and such which I’d need to use to make this work. I haven’t found any code examples on doing this anywhere.

    Thanks, This would be a big help!

  165. Branden deBuhr on February 4th, 2008 10:04 pm

    Ooh, One more thing, I’d like to if possible, disable some of the tabs in the image upload pages so that flash is not an option. Plus, I want to take out some form elements on these pages. Is this also possible? Basically I need to dummy it down a bit for people using my site. These will be used by random people so security is a concern.

    Thanks again!

  166. Branden deBuhr on February 4th, 2008 10:05 pm

    I just noticed in the post above, my cf code I posted is missing. Not sure why…

  167. Dave Miller on February 8th, 2008 2:12 pm

    Is there a way to set the userFilesPath via javascript or in the cftextarea tag so that multiple sites can use the files?

  168. Jake Munson on February 12th, 2008 9:49 am

    Thanks Rakshith, this walk through was just what I needed. :)

  169. Rakshith on February 12th, 2008 2:31 pm

    Dave,
    Unfortunately, there is no way yet to set the userFilesPath via JavaScript or in the cftextarea tag.

  170. Rakshith on February 12th, 2008 2:31 pm

    Am glad it was of help Jake.

  171. Rakshith on February 12th, 2008 2:37 pm

    Branden,
    Its pretty straight forward to disable the tabs that you do not want to show up in the upload option.

    Set these properties in the fckconfig.js based on what you need and dont:

    FCKConfig.LinkBrowser = false ;
    FCKConfig.ImageBrowser = false ;
    FCKConfig.FlashBrowser = false ;
    FCKConfig.LinkUpload = false ;
    FCKConfig.ImageUpload = false ;
    FCKConfig.FlashUpload = false ;

    But there is no way that I know of to set these properties directly from JavaScript without editing these files or setting the variables such as userFilesPath in the cfm.

  172. M on February 13th, 2008 11:40 pm

    Clean & neat. Thanks. This is quite close to what I was looking for :)

  173. E Cohen on February 14th, 2008 1:16 pm

    I am wondering if you have any ideas about the onChange event not working when you turn on richtext with CFTextArea. It works fine when richtext is off, but fails when it is on. I am looking for a fix or workaround.

  174. Rakshith on February 15th, 2008 2:33 am

    Tony,
    Make sure you let us know about this through the survey.

  175. Stick on February 15th, 2008 10:05 am

    I had to change connectors\cfm\config.cfm to:

    config.userFilesPath = “/inetpub/wwwroot/userfiles/”;
    config.serverPath = “D:\inetpub\wwwroot\userfiles\”;

    But how do I change it so that a differnt “userfiles” directory is uses for each site?

  176. Branden deBuhr on February 18th, 2008 9:21 pm

    Ok, I didn’t really mean to set the userfiles path in javascript or even in the cftextarea tag. I would like to set a variable in my application and then call that variable within the config.cfm file which specifies where the files go.

    I guess another way to say it would be how do I get a variable I set in my application to carry through into the fck editor files? Since the files are called and or used within my site directory as a virtual directory, does that mean that I can set an application variable or a request variable? Or, can I do an include inside the config.cfm file to the file in my application which needs to set the file location. Any help would be great!

    BTW, thanks for setting me straight on the fckconfig.xxxproperties=false; That looks easy enough now.

  177. Miguel Jaque on February 21st, 2008 6:44 am

    Thanks,

    You also save me several hours of desperation.

  178. Bruce Sorge on February 21st, 2008 11:36 am

    OK, here is my issue. I followed the steps above. When I go to create a link, I of course select the Hyperlink button, and the window opens. I select Browse Server. I then create a new folder. Once that is done I see the folder. I click on the folder to open it, and select Browse to load a new file into that folder. I find the file, click OK, then click Upload, and it appears to work fine. I click on the file and make the hyperlink. Problem is, there is no folder being created and there is no file being uploaded. I did a complete search on my server for the folder name and file name on the entire drive and still I cannot figure out where the folders and files are. It is strange that FCK will “create” a folder and “upload” a file, and by the looks of the editor they are there, but in reality they are not. Any assistance would be greatly appreciated.

    Bruce

  179. Rakshith on February 21st, 2008 10:41 pm

    Branden,
    Check out my post titled ‘All about the rich text editor’. There is a specific attribute called the basepath using which you can actually move the fckeditor files out of the CFIDE directory into perhaps your application directory.

    Once you do that, your application scope will be available in the config.cfm as well.

  180. Rakshith on February 21st, 2008 10:42 pm

    Bruce,
    Are you saying that the upload does not seem to be working at all? That’s actually strange.

  181. Jon Hirschi on March 3rd, 2008 12:43 am

    Rakshith,

    It looks like there is still an issue with dates not being deserialized properly when included in the “this” scope, do you know if a fix is imminent on this? Also, are there any other data types that you are aware of that can’t be deserialized from a coldfusion cfc?

    thanks!

  182. Chris on March 3rd, 2008 2:45 am

    Is there any progress on fixing this bug?

  183. Lonnie on March 10th, 2008 9:26 pm

    Excellent post! This is the exact information I was looking for today, and you had it.

    Thanks for saving the day!

  184. Kostya Artemov on March 11th, 2008 2:15 am

    You saved at least half of my working day. Thanks! Best wishes.

  185. Claude on March 14th, 2008 4:33 am

    Very interresting presentation indeed.

  186. Rakshith on March 15th, 2008 2:48 am

    Thanks Claude!

  187. Nikita on March 17th, 2008 2:57 am

    hi. i have used the FCKEditor . it works fine.. but now i m wondering how to add the

  188. Nikita on March 17th, 2008 3:00 am

    hi… i have used FCKEditor.. its work fine.. but now i m wondering about how to add “A” tag Style in to fckstyle.xml i have did with this code.. but it doen’t work. this code didn’t shww newlly added style into combobox for the user. plz help me ASAP…

  189. Soumya on March 17th, 2008 6:15 am

    Belated wishes and thanks for the slides…the talk was very good and we enjoyed it.

  190. Rakshith on March 18th, 2008 12:17 am

    Thanks for the wishes Soumya. Am glad you enjoyed the talk.

  191. Cathy on March 18th, 2008 3:43 pm

    Great post, do you know if there is any way to implement this in a coldfusion flash form?

  192. Jeff Jones on March 20th, 2008 9:42 am

    - Enable Spell Check in the Rich Text Editor.

    - Make it easier to customize the tabs in cflayout.

  193. mgwalk on March 21st, 2008 6:23 am

    Thanks I think they fixed the link!

  194. Dave on March 21st, 2008 12:50 pm

    Thanks for the tutorial. And thank you IE and firefox for taking 2 completely different approaches to this.

  195. R P on March 26th, 2008 11:16 am

    Awesome tip, thank you! I fought this battle some months ago and lost, but with this tip I was able to replace a bunch of crappy work around code in no time flat. Much appreciated!

  196. Mohamed Ragaee on March 27th, 2008 7:16 am

    Just, Thanks

  197. Shawn on March 31st, 2008 8:53 am

    just a slight addendum to Rakshith’s already very useful info in item 13:
    editor.InsertHtml(”abc”) will actually insert text before any existing text,
    editor.SetHTML(”abc”) will replace the entire content of the editor…please note the difference in case for InsertHtml and SetHTML

  198. Rakshith on March 31st, 2008 11:58 pm

    Nikita,
    Sorry for the delayed response. If the newly added style does not show up in the combo box, then it must one of issues where browser is caching the result. I suggest you clear the browser cache and then recheck.

  199. Rakshith on April 1st, 2008 12:05 am

    @Lonnie : Am glad this helped you.
    @Cathy : ColdFusion Flash Form does not have a rich text editor built in. So you cannot get this working on a ColdFusion Flash form.

  200. Ian Bale on April 2nd, 2008 2:23 am

    Same problem with Arrays – they serialise just fine, but throw a similar error to the dates when you try to deserialise.

    Like everyone else here, I am rather keen to make use of this functionality, so would be very grateful if you can offer a likely date when this might be fixed…?

    Thanks

    Ian

  201. Rakshith on April 2nd, 2008 4:02 am

    Guys,
    I cannot commit on a likely date of fix. But I can assure that this on our list of bugs and will be looked into soon.

  202. Chris on April 3rd, 2008 5:06 am

    I have followed these instructions, but the new toolbar buttons are not showing up in the rich text editor. I have moved the entire FCKeditor directory to a location in my local files. I have followed all of the instructions listed, but still do not see the new buttons. Any ideas as to what is wrong?

  203. Ian Bale on April 4th, 2008 2:50 am

    I see a fix didn’t make it into Updater 1, although bug number 70495 did look like it might be the right one…

    Do you have a bug tracking number for this bug? That way those of us with access to Adobe bug tracking can keep an eye on developments that way.

  204. Ahamad on April 4th, 2008 3:49 am

    I came to know that FCKeditor 2.6 RC was released on March 27, 2008

    http://www.fckeditor.net/

    Ahamad,
    http://coldfusion8.blogspot.com

  205. brian on April 7th, 2008 3:29 am

    Looks like things have changed with 8.01. are the directories different?

  206. Rakshith on April 7th, 2008 3:43 am

    Yes, its actually much easier to get the file upload working in 8.01. It has also been documented on how it get it working. Let me know if you are not able to find the update on docs.

  207. brian on April 7th, 2008 4:02 am

    I’ve set FCKConfig.ImageBrowser = true ; and FCKConfig.ImageUpload = true ; in fckconfig.js but when I select the image insert icon the dialog box that comes up only has a URL box which you can type in to. This works as far as it goes but there is no option to upload a new image or browse to an existing one.

  208. brian on April 7th, 2008 5:49 am

    deleting my temporary internet files seems to have fixed it

  209. Seb on April 13th, 2008 9:53 am

    @Shawn: Actually, InsertHTML will insert the specified text at the current cursor position within the editor, rather than at the beginning…

  210. John on April 22nd, 2008 5:21 pm

    I had a problem with copying and pasting the lines of code from this blog into Dreamweaver. The single quotes and commas may have been in a different character set.

    This solution did not work at first (screen was blank). After I deleted and re-typed the commas and quotes in this line:
    [’ImageButton’,'Link’,'Unlink’,'Image’,'Flash’],
    (See how some single quotes are slanted, some are straight up and down)

    New:
    ['ImageButton','Link','Unlink','Image','Flash'],

    It worked! Just thought I would share)

  211. Charley Ruggiero on May 2nd, 2008 10:18 am

    This is a little complicated, but I would like the image uploader to put it in an arbitrary place on my server for example

    c:/domains/imgserver/httpdocs/fckuploads/

    and then have the FCK spit out code that will point the img src to

    http://www.myimages.com/fckuploads/myimg.jpg

    which is an absolute URL and has nothing to do with the site the FCK happened to be on

    Is this possible?

  212. andrew on May 15th, 2008 3:42 pm

    UPDATE!
    coldfusion 8.0.1 includes FCKeditor 2.5, which works in Safari and there are better ways of getting and working with a cftextarea instance.

  213. Rakshith on May 20th, 2008 12:57 am

    Yup thats true. Not only is getting and working with the cftextarea instance better, but setting up file upload and spell check on it is much simpler and straight forward.

  214. richard steele on May 20th, 2008 6:20 pm

    Can code be added to limit the upload size? If so which file would it be added to and what might the code look like? Many thanks.

  215. Michael Sharman on May 22nd, 2008 1:51 pm

    Looking forward! See you there

  216. Debabrata Acharjee on May 23rd, 2008 2:01 am

    Looking forward to your presentation her in Sydeny!

  217. Donna Stewart on May 23rd, 2008 9:48 am

    Hi – thank you so much for this. I have followed all of the instructions, but when I try to upload an image, it keeps creating a wwwrootImage folder in wwwroot and uploading the image there. Not in /userfiles/Image. So of course, the editor is not finding the image. Any ideas/suggestions?

    Thank you!
    Donna

  218. Rakshith on May 26th, 2008 9:53 pm

    @Michael: See you there Michael!

    @Debabrata: Oh never knew that you moved to Sydney. See you there!

  219. Praveen on May 27th, 2008 6:54 am

    Hi,
    I have a similar issue..
    I am using a javascript calendar. and this calendar fills the data into a text box.

    Now, what i have to do is… When ever the date is changed in the text box, a javascript function has to be called. I cannot change the calendar script as this is used in may places in the application.

    Can you please suggest me a solution for this??

    This text box is readonly

    Thanks in advance….

  220. Rob on May 27th, 2008 9:10 am

    Anyone had an issue where the FCKEditor stops working on a specific domain (website). We have multiple sites, and on all of them except one I’m having an issue where the editor does not render but rather HTML comments from the editor.

    Help!

  221. Rob on May 27th, 2008 9:12 am

    This is what comes out:

  222. Rob on May 27th, 2008 9:14 am

    * Copyright (C) 2003-2007 Frederico Caldeira Knabben
    *
    * == BEGIN LICENSE ==
    *
    * Licensed under the terms of any of the following licenses at your
    * choice:
    *
    * – GNU General Public License Version 2 or later (the “GPL”)

    … etc ….

  223. Rakshith on May 27th, 2008 10:26 pm

    @ R P & Mohamed – Am glad it helped.

    @ Praveen – You say you cannot change the cakebdar script. Does your calendar fire an event when a date is selcted from the calendar? If that is the case you can register for the date selected event and fire the onchange event for the text box in that event handler. Hope it helps.

  224. Rakshith on May 27th, 2008 10:34 pm

    @ John – Thanks for the update.

    @ Charley – You will have to play with the cfm files under the FCKEditor to find out if this is possible.

    @ Richard – I am not aware of this one. But I suggest you take look the cfms responsible for the upload(there are just a couple I believe). That should give you an idea on what is happening on the CF side during upload.

    @Donna – Are you on ColdFusion 8.1? There was an issue and it has been fixed with the updater. I suggest you to move to the updater and try it out. And it is much simpler to enable file upload in the updater without having to go through the changes mentioned in this blog post. It has also been documented in the updater on how to enable file upload and spell checker on FCKEditor.

  225. Praveen on May 28th, 2008 6:19 am

    Thanks a lot… i was able to do it in this way..

  226. Matt on May 31st, 2008 10:09 pm

    How about a “timeout” tag? So we can place it around whatever we want and specify the timeout in seconds.

    I always need something like that in EVERY app.

  227. campbell Anderson on June 6th, 2008 3:12 pm

    Nice! se you there mate.

  228. Debabrata Acharjee on June 11th, 2008 5:33 am

    Hi Rakshith,

    I have moved here two months back and working for a Sydney based software company as a Sr. RIA Developer.

    Just wanted to let you know that I won’t be able to attend WebDU for some urgent work at office.

    Let me know if you are available for a meet up after the event.

    Best of luck for your talk.

    Regards,
    Debabrata

  229. Mohammed Irfaan on June 16th, 2008 12:01 am

    Thanks Rakshith for the great presentation. Everyone was stunned with the presentation.

  230. youtube on June 25th, 2008 3:23 am

    Hey Rakshith, How does one go about taking the exam? (registration and locations)

  231. Seba Navarro on July 3rd, 2008 7:43 am

    Muchas Gracias!

  232. nic on July 3rd, 2008 11:33 pm

    thank you so much! so finally I found what was looking for…

  233. nic on July 4th, 2008 5:57 am

    I can’t find where to set the text-decoration:none inside the columns if a href is defined (don’t want to use a js function as a workarround…).

    it’s none of the classes:

    .x-grid-hd-row td, .x-grid-row td
    .x-grid-hd-row td
    .x-grid-col
    .x-grid-locked .x-grid-body td
    .x-grid-locked .x-grid-body td .x-grid-cell-inner

    all the other attributes inside a row can be modified with these classes.

    thanks for some infos…

  234. RN Kumar on July 4th, 2008 12:13 pm

    Release a Coldfusion 9 express with maybe native Cloudscape/Derby or Oracle XE database and freely distribute.When people know how easy it all is they will buy the fully loaded stuff.Also good in these soon to be hard times. A must for all schools world over!!Must catch people young!
    I am from India-knowing CF and Studio from 4 onwards!

  235. james carberry on July 9th, 2008 6:04 am

    i must be missing some small step as I was able to insert the toolbar and unzip / modify the specified files, but the “upload” option still does not show.

    I will pay you via PayPal to do a GotoMeetting with me and have you fix if you can. Thx. -j

  236. james carberry on July 9th, 2008 6:17 am

    please ignore my last question – your last post solved it for me. Thx!

  237. Bim Paras on July 10th, 2008 2:47 pm

    Do you know if the ASpell and dictionary installation works on a Windows Server 2003 64 bit edition?

  238. Rakshith on July 12th, 2008 4:04 am

    hmm.. Not sure about this one Bim. Are you facing any issue there?

  239. Rakshith on July 12th, 2008 4:06 am

    checkout Pearson VUE’s website – http://www.pearsonvue.com

    This should give you all the information

  240. B Goetke on July 21st, 2008 1:38 pm

    I am having the same problem as E. Cohen (item 36 – dated Feb 14, 2008)…..

    I cannot get onClick, onChange, onKeyUp, onKeyDown to work with rich Text turned on!

    Please advise.. thanks…

  241. J.C. Harvey on July 30th, 2008 1:36 pm

    Database Exporting for both MySQL and SQL Server.

    I’m currently writting a cfapp that would do this, however I keep running into hurdles in doing so, especially when making table structures and data inserts.

    It either doesn’t get all the columns in a table or if it does it doesn’t write out the structure correctly.

  242. Get the spellchecker up on the rich text editor : The Sprint on August 1st, 2008 11:49 am

    [...] ColdFusion 8 Update 1: Rich Text Editor – file upload and spell check gets much simpler [...]

  243. ColdFusion 8: Enable File, Image and Flash upload in the rich text editor in five steps : The Sprint on August 1st, 2008 11:50 am

    [...] ColdFusion 8 Update 1: Rich Text Editor – file upload and spell check gets much simpler [...]

  244. Rakshith on August 1st, 2008 11:54 am

    @james – Good to know that the issue got solved. Where’s my payment? Just kidding :)

  245. Geoff Bowers on August 1st, 2008 5:25 pm

    If you finally make it to tinyMCE 3.0 you can leverage this CF spell checker plugin:
    http://www.richarddavies.us/archives/2008/04/coldfusion_spellchecker.php

    We’re considering it as part of upgrading FarCry Framework to use tinyMCE.

  246. Rakshith on August 1st, 2008 10:54 pm

    Geoff, thanks for sharing that info.

    We will give it a thought for sure.

  247. Don Q on August 2nd, 2008 12:22 am

    Hate to ask, hoping maybe I missed the bug fix or real workaround, but… Any updates?

  248. Johan on August 2nd, 2008 2:54 pm

    I’m yet to be convinced integrating these things in to CF makes sense – invariably they are hard to customize and keep up to date (due to scripts).

    Flex/Air certainly needs a more advanced X/HTML editor component – why not partner with someone like XStandard and integrate their editor and use it in Flex/Air and CF?

    One of the nice things about XStandard editor is that is uses web services for images, files, spellchecker, and any other items you want to add.

  249. Giancarlo Gomez on August 4th, 2008 12:16 pm

    THis works great!!!! But silly question … how can I change the directory I want to use to upload and browse to.

  250. Giancarlo Gomez on August 4th, 2008 12:43 pm

    I figured it out … it is global and set in the following file /CFIDE/scripts/ajax/FCKeditor/editor/filemanager/connectors/cfm/config.cfm

    The variable is Config.UserFilesPath on line 32 ….

  251. Rakshith on August 4th, 2008 10:35 pm

    @ Ian : The fix is not in the updater. The bug number for this issue is 70580.

    @Don : There is no fix out yet. But we know that is an issue and is logged in our database. We will look into it soon.

  252. Rakshith on August 4th, 2008 10:56 pm

    Yes Giancarlo, you got it right. Thats the variable you need to set.

  253. P Lawrence on August 14th, 2008 2:24 pm

    Is there any way in the settings to specify different upload paths for different instances of the FCKEditor? We have many clients on the same CF server and don’t want them to see each other’s uploaded files so a server-wide setting doesn’t help. I know you can supposedly do this in a standard FCK setup (but I haven’t had much luck actually doing it).

  254. Rakshith on August 15th, 2008 12:31 am

    @ Lawrence: I have not tried such a thing. But I suggest you use the basepath attribute. Using the basepath attribute you can use different fck editor root directory for different clients which picks up the config from those specific directories. Refer the docs or my blog entry on the attributes of the rich text editor.

  255. Corrado on September 1st, 2008 2:02 am

    Great article! It’s much more simple then onpropertychange, onchange, onkeyup approach and browser detect. Thanks again!

  256. Swathi Kusum on September 2nd, 2008 12:46 am

    i have the same problem as Steve Judd mentioned in comment 14. Initially i can see the rich text area under the cflayoutarea, when loaded for the first time. when clicked on the collapse option and expand the cflayoutarea again, the textarea vanishes. Please give me a solution for this problem.

  257. Ryan on September 3rd, 2008 12:50 pm

    Hello,

    I’m attempting to place the userfiles/image directories into a directory other than the default directory that houses the CFIDE and cfdocs directories.

    Is there a setting to control this location?
    I’m only able to find config.userFilesPath that pertains to relative path naming but not to a specific directory outside of the relative root path.

    Thank you for any input!
    Ryan

  258. Ryan on September 4th, 2008 8:30 am

    Hello Again,

    OK, I figured out the directory situation except one small issue: The FCKeditor is including an image directory and placing the image files in it.

    How can the image directory not be included? Is there a setting for this somewhere?

    Thanks,
    Ryan

  259. Bob Hendren on September 8th, 2008 5:38 pm

    I’m actually looking for the same solution that P Lawence is – I’ve got potentially hundreds of users that will be editing with FCKEditor, so I definitely don’t want a bunch of crossover. I thought that basepath was if you are specifying another location for the editor itself – it’s not feasible to have hundreds of copies of the editor either. Any ideas?

  260. Shawn on September 9th, 2008 12:14 pm

    Biggest Needs in CF9

    1. Fix AS3 Flash Remoting with Flash CS4. Currently AS3 Flash Remoting only works in Flex 3 If you run Flex 3 AS3 code in Flash it tosses undefined errors because the classes don’t exist in the software to import like they do in Flex 3.

    2. Automated Site Definitions. This is critical to building a truely automated web application. Rather than having to buy scripts and pray they work, CF9 should have a tag to easily automate site setups in IIS and Apache.

    3. CFDeploy tag. Another automation tool that allows you to deploy a zip or compressed file to a directory. Also it should support subtags that allow to you customize CFM and CFC files (inside the zip) with instance specific information like a clientID=XXXX to make the deployment unique.

    4. Automation of e-mail account setup. I think CF9 shouldn’t just support existing e-mail accounts, but should be able to create and delete them as well, enabling developers to automate e-mail management on large systems without scripts that many CF developers will not understand.

    5. Some type of Flash Media Server Integration for advanced and custom content security, such as defining how you want FMS to respond to certain events like an expired token.

  261. Bob Hendren on September 10th, 2008 2:54 am

    In a “Duh” sort of moment, I went over to the FCKEditor site and trolled the Forums for a bit. I think this thread has the solution – trying it out now:

    http://www.fckeditor.net/forums/viewtopic.php?f=5&t=8632&p=22562&hilit=custom+folders&sid=debd1e26aa25d4dfd9c8e22913dbef90#p22562

  262. Rakshith on September 16th, 2008 10:42 pm

    Bob, thanks for the link. This is a very useful post. I will blog about it.

  263. Hemanth on September 26th, 2008 3:06 pm

    I am having issues in firing an event with the Chrome browser. Do you know why?
    Thanks a lot,
    Hemanth

  264. Mike on September 30th, 2008 2:27 pm

    Rakshith,

    Have you come accross the situation where by if you submit a form, then say have som server side validation, and go back, the toolbar shows, but the actual area and any text is missing?

    Im getting very frustrated with it, if i look in firebug it says the error…

    this.LinkedField is undefined
    [Break on this error] var FCK={Name:FCKURLParams[’InstanceName…true;FCK.Events.FireEvent(”OnFocus”);}};

    Any ideas on this, or i may have to switch to something like tinymce:(

  265. Bob Hendren on October 1st, 2008 3:37 am

    I had gotten everything setup for file uploading with all of the types (File, Image, Flash, Media), but could NOT for the life of me get the Flash type to upload properly – I kept getting an error for “Invalid file type”. I racked my brain for quite some time, search the forums at FCKEditor web site…nothing.

    Then, in one of the variations of search criteria on the FCK forums, I found a reference for an error in the PHP connector. Turns out, it’s the same in the CFM connector!

    In the cf_util.cfm script under the CFM connector, there is a CFFUNCTION for IsImageValid. The ’swf’ file extension is listed there and shouldn’t be. Remove it, and Flash upload will work fine!

  266. werutzb on October 7th, 2008 8:19 pm

    Hi!

    I would like improve my SQL experience.
    I red that many SQL books and want to
    read more about SQL for my work as db2 database manager.

    What would you recommend?

    Thanks,
    Werutz

  267. Ron Gruner on October 17th, 2008 8:10 pm

    Bingo! After fooling around for hours trying to get Spell Check to work with CF8 Rich Text Editor your directions had the app running in ten minutes. Many thanks.

  268. Rakshith on October 20th, 2008 3:28 am

    Thanks Ron. Am glad the post helped you out.

  269. Brian Willy on October 23rd, 2008 9:21 am

    Yes, another saved day. I’m using YUI and I can’t believe they don’t have this cross-browser impl wrapped in their lib. Anyhow, much appreciated!!

  270. moumita on November 20th, 2008 6:35 am

    Hi,I have few issues with CF8
    1.I am trying to upload a blank text file in CF 8 and it throws an error .
    I have tried to fix with cgi.content_length but looking for a better option.

    2.Another issue is how to upload a file in a different server.Like i have CF server in server1 and i want to the file upload in server2

    Will appreciate any help.Thanks

  271. Warren on December 12th, 2008 6:38 am

    Thanks very much for the tutorial.

    I have a problem where I have 2 cfgrids on 2 seperate pages. One grid is in an iframe and the other is in a nested iframe ( iframe in an iframe ) The one in the single iframe works fine but the one in the nested iframes doesn’t. The one in the nested iframes only changes the hover colors and not the selected color. Even when I have set the selectColor attribute on the cfgrid.

  272. Recent Links Tagged With "richtext" - JabberTags on January 1st, 2009 12:34 am

    [...] public links >> richtext ColdFusion 8 Update 1: Rich Text Editor – file upload and spell … Saved by melsbasketcase on Thu 18-12-2008 How to get the enhanced Rich text editing buttons in [...]

  273. Rakshith on January 6th, 2009 10:48 pm

    @warren – I am just trying to understand. Why are you using the cfgrid inside of an iframe?

  274. Vince on February 24th, 2009 3:19 pm

    I cannot get ASpell to work in a clustered CF environment. I have it installed in the default location on a windows 2003 server and I keep getting an error that it wants to look for the ‘cmd.exe’ in C:\windows\systems32\ when it is actually in C:\winnt\systems32\. I have explicitly coded ‘C:\winnt\systems32\cmd.exe’ but it still wants to look for it in a ‘windows’ directory. Help.

  275. Debabrata Acharjee on March 3rd, 2009 3:25 pm

    Congrats dude!

  276. Mark Banker on March 4th, 2009 8:33 am

    Can someone tell me how I can set the default font for input into the cftextarea that uses FCKEditor. Currently it is always Times New Roman. I want it to be Arial, Helvetica, sans-serif and not allow the user to change the font. I understand the use of FCKConfig.ToolbarSets to control what options they have to format their text. I have tried adding style=”font-family:Arial, Helvetica, sans-serif” to the tag without success. Anybody have a suggestion?

    Thank you.

  277. Jones on March 6th, 2009 4:41 am

    Nice blog…
    visit also coldfusion example

  278. Jeromy on March 20th, 2009 11:40 am

    I’m having the same problem as E. Cohen (post 36) and B Goetke (post 47). It seems the javascript events don’t fire when ‘richtext=”yes”‘–not even a simple ‘onClick=”alert(’hi’);”‘.

  279. John Develekos on April 15th, 2009 6:59 am

    I have a problem with the editor handling greek characters. When I enter a greek word it transforms the characters to their symbolic html equivalents (ΕÎŻναι). Is there a way to solve that? Thank you in advance…

  280. Jay Smith on May 4th, 2009 9:34 am

    Hi I’m having the same issues as Donna. When I try to upload an image, it keeps creating a wwwrootImage folder in wwwroot and uploading the image there. Not in /userfiles/Image. So the editor is not finding the image.
    Thank you!
    Jay

  281. Jim Crews on May 13th, 2009 1:46 pm

    This still isn’t fixed, is it? Is there a hotfix or something that I am missing? Do you know of any other ways to serialize ColdFusion components? My initial thought was to use WDDX, but CFML2WDDX doesn’t support CFCs.

    I actually used the above to create a ComponentConverter object with serialize and deserialize methods before discovering the Array nastiness.

    :-(

    – Jim C.

  282. Jim Crews on May 13th, 2009 2:43 pm

    I found this CFC for creating XML objects from CFCs (and vice versa)in the meantime. It DOES work with Arrays, etc:

    http://www.celticinternet.com/blog2/post.cfm/cfc-serialisation-with-coldfusion-8

  283. lwill on May 27th, 2009 5:07 am

    I find it hard to believe that I have to have multiple instances of the fckeditor on my site in order to customize the upload path for /userfiles/.
    I have tried application and session vars to no avail. I have the editor sitting at the root c:\inetpub\wwwroot and many sites below. How do I get specific paths into the config structure so that each site uploads images to their own directory without having multiple copies of the editor?
    c:\inetpub\wwwroot\site1\files\userfiles\images
    c:\inetpub\wwwroot\site2\files\userfiles\images
    I’ve been working on this and reading blogs for days with no luck.
    my basepath is set to /fckeditor/ and that mapping works. I just can’t seem to get the application vars passed.
    Help?

  284. Willene Hendon on June 8th, 2009 10:13 am

    Do you know if there is css for getting the text to wrap when the grid cell is in edit mode? I have the white space:normal for cell in normal mode and your code for the mouse over the header. Thanks

    .x-grid-row td {white-space:normal;}
    .x-grid-row td.text{white-space:normal;}
    .x-grid-row-selected td {background-color: #D5E8C8; color: #FFF; white-space:normal; }
    .x-grid-row-over td {background-color:#D5E8C8;}
    .x-grid-hd-over .x-grid-hd-text {background: #ffffc3; color: #000;}
    .x-grid-form{white-space:normal;display:block;}
    .x-grid-cell-selected { white-space:normal; }

  285. Roberto F. on June 16th, 2009 5:13 pm

    Hi, I’m having some problems, my server say that I have no permission for create a folder when I click browse server. Well, in the last version I had no problem with that, but I had problems with JS library… so I turn back. Well, doo ya know how can I start findout the error?

  286. Pablo on June 21st, 2009 8:46 pm

    I can sleep tonight thanks to your code :D

  287. ColdFusion 8: Hotfix for CFC Serialization released : The Sprint on June 29th, 2009 12:53 am

    [...] CFC serialization is a feature that came out in ColdFusion 8. With this feature it is now possible to serialize a cfc, i.e. it is possible to write an instance of a cfc to an outputstream. In simple words, it is possible to write cfc instances to a file and read them back. CFCs stored in the session now get replicated across the servers in the cluster as well because of CFC Serialization. [...]

  288. Rakshith on June 29th, 2009 1:01 am

    @ Roberto: FCKEditor uploads the file in a user specified directory which can be configured in /CFIDE/scripts/ajax/FCKEditor/editor/filemanager/connectors/cfm/config.cfm. By default it creates a /userfiles/ directory under the webroot. Looks like the creation of this directory which will be used to save the uploaded files is not getting created as you do not have the right permissions to create the directory on the server.

  289. Rakshith on June 29th, 2009 1:03 am

    @Willene : hmm, not sure about this one.

  290. Rakshith on June 29th, 2009 1:07 am

    @Iwill : Check out a post that I have, where a solution to get the exact stuff that you are trying to get working has been described on the FCKEditor site.

  291. Rakshith on June 29th, 2009 1:13 am

    Guys, good news! The hotfix for the cfc serialization issue has been released. Check my post now!

  292. Rakshith on June 29th, 2009 1:15 am

    @ Jay: Are you are CF 8.0.1? I remember there was a similar issue on ColdFusion 8 and was fixed in CF 8.0.1.

  293. Rakshith on June 29th, 2009 1:15 am

    @ John: Not sure about this one.

  294. Rakshith on June 29th, 2009 1:17 am

    @ Cohen, Goetke, Jeromy: I agree that this is an issue. Something that has to be fixed. We have a bug for this one.

  295. Rakshith on June 29th, 2009 1:18 am

    @ Vince: Hmm.. This is strange. It could be an issue with the editor.

  296. Rakshith on June 29th, 2009 1:21 am

    @ werutzb: Not sure about a specific book. If I were you, I would just use the internet to learn more about db2.

  297. Rakshith on June 29th, 2009 1:22 am

    @Hemanth: hmm.. Strange.. I have never tried to get it working on chrome.

  298. Rakshith on June 29th, 2009 2:00 am

    @ Swathi: Can you give me more details about the issue? Is the rich text editor inside a border layout? Can you share your code?

  299. ColdFusion 8 Update 1: Rich Text Editor – file upload and spell check gets much simpler : The Sprint on July 4th, 2009 6:11 am

    [...] Security threat with ColdFusion and FCKeditor [...]

  300. Rakshith on July 11th, 2009 6:14 am

    @Mark : I haven’t tried setting a default font. But I quickly looked at FCKeditor/fckconfig.js file. I saw that there are settings for:

    FCKConfig.DefaultStyleLabel = ” ;
    FCKConfig.DefaultFontFormatLabel = ” ;
    FCKConfig.DefaultFontLabel = ” ;
    FCKConfig.DefaultFontSizeLabel = ” ;

    Try it out. I would say experiment with the different settings that are available in fckconfig.js file.

  301. Ethan on July 18th, 2009 1:25 pm

    Hey, thanks! The post and the comments were all of great help.

  302. Marta on July 23rd, 2009 12:34 am

    Thank you a lot! You saved my day.

  303. Sean Sekora on July 24th, 2009 7:13 am

    Thanks for the guide. I was able to getting it working on a Windows Server 2003 Standard x64 Edition with one change. Aspell installed to the
    C:\Program Files (x86) by default so I had to make a change to the spellchecker.cfm template.

    Changed
    ——-

    To
    ——-

    After that everything worked great

  304. Sean Sekora on July 24th, 2009 7:15 am

    It looks like the code isn’t displaying so here is another attempt

    Changed
    ——-
    <cfset aspell_dir = "C:\Program Files\Aspell\bin">

    To
    ——-
    <cfset aspell_dir = "C:\Program Files (x86)\Aspell\bin">

  305. Rakshith on July 26th, 2009 10:54 pm

    @sean : Am glad it worked for you on Windows Server 2003. Thanks for sharing the information

  306. Aaron Neff on August 22nd, 2009 2:50 am

    @Steve Judd (comment on October 17th, 2007): This appears to be related to the length of the HTML string returned from the source attribute of cflayoutarea. I was able to consistently cause this error, by including a 50k-100k length HTML comment into the file being referenced by the cflayoutarea source attribute.

  307. Rakshith on August 23rd, 2009 10:33 pm

    @CFUser – If the book really says that, then that statement in the book is wrong. I am guessing that this would be corrected in the recent version of the book.

    Session replication with cfcs should work for you on ColdFusion 8. Can you give out more details on how you are trying to get this working?

  308. Eduardo Sanchez on August 25th, 2009 6:23 am

    There is a vulnerability for ColdFusion’s fckeditor. Make sure you patch it by going to Adobe’s site. http://www.adobe.com/support/security/bulletins/apsb09-09.html

  309. Hemangini on August 31st, 2009 3:28 am

    I am using a javascript calendar. and this calendar fills the data into a text box.

    Now, what i have to do is… When ever the date is changed in the text box, a javascript function has to be called. I cannot change the calendar script as this is used in may places in the application.

    Can you please suggest me a solution for this??

    This text box is readonly .

    My calendar does not fire any event when a date is selcted from the calendar. How to do it?

  310. Michael Horne on September 1st, 2009 7:01 am

    Thank you kindly for this post – that hotfix has saved me a day’s work. :-)

  311. dave on September 3rd, 2009 6:10 am

    Is there a reason why fckeditor allows and cftextarea just craps out?

    I see that it uses JS to populate the field so with the script text in there it screws up the page.

    When you put fckeditor into a cflayoutarea box it does not work. if you have it by itself it works. If you submit the information, it doesn’t recognize the new changes but still manages to send the parameter/data (original).

    When you use cftextarea it recognizes the changes but it craps out if there is a javascript tag in it.

    Thoughts?

  312. Rakshith on September 3rd, 2009 11:16 pm

    Dave, looks like some part of our comment did not go through. fckeditor allows what?

  313. Josen Ruiseco on September 17th, 2009 10:03 am

    Is the concept of a configurable “basepath” attribute being considered as an enhancement to the cftextarea tag in CF 9?

    Josen

  314. Rakshith on September 17th, 2009 11:27 pm

    @Josen : I don’t think this in the plans for CF 9. I suggest you log a bug on our public bug tracker : http://cfbugs.adobe.com/cfbugreport/flexbugui/cfbugtracker/main.html

  315. Henry Ho on October 4th, 2009 11:29 am

    What version of BlazeDS does CF9 come with? Is it compatible with Flash Builder 4 data-centric development?

    Thanks!

  316. Rakshith on October 4th, 2009 11:43 am

    The BlazeDS version in ColdFusion 9 is 3.2. It should be compatible with the data-centric development of Flash Builder 4.

  317. Henry Ho on October 4th, 2009 12:26 pm

    cf-rtmp still works in CF9 w/o LCDS?

  318. Rakshith on October 4th, 2009 1:05 pm

    @Henry : Nope. It only works with LCDS. Am going to update the post to make it clear.

  319. Kishan on October 6th, 2009 6:18 am

    Blaze DS version 4 is required for data-centric development of Flash Builder 4. You can download the latest BlazeDS 4 builds from http://opensource.adobe.com/wiki/display/blazeds/download+blazeds+trunk

  320. Kelvin on October 10th, 2009 10:38 pm

    Please describe the changes to xml files as soon as possible.

  321. Dan on October 12th, 2009 11:37 am

    Good stuff! I’ve been googling for a while trying to find this exact solution. Thanks.

  322. jacky on October 14th, 2009 2:58 am

    Rakshith,

    I’ve been trying to set up FCKEditor uploader with my application, but I’m always getting the error “this file uploader is disabled. please check the editor/filemanager/upload/cfm/config.cfm file”.

    I’ve enabled the uploader (config.enabled = true;) so I’m quite baffled as to why it keeps saying it’s disabled. Would it be a caching issue? I’ve tried deleting my temp internet file but still no go.

    Any ideas? Thanks!

  323. jacky on October 14th, 2009 3:03 am

    Hi again Rakshith,

    To follow up with my previous post, it seems to me the changes to my upload/config.cfm is not taking effects at all. Is there something else I have to set (eg. fckconfig.js?) to make sure it’s looking at the correct config.cfm?

  324. jacky on October 14th, 2009 3:06 am

    Also is it possible to only show the Upload tab in the Image Properties pop up? As my users would only be allowed to upload files and not post URL links.

    Any help would be appreciated. Thanks!

  325. MikeG on November 2nd, 2009 5:18 pm

    I have been an FCKEditor user for quite a while and while the link to fckeditor.net forum above WILL work for fckeditor, there are some things that will not work with CFTEXTAREA. If you are making changes to the connector and js files in the cfide folder, the upload connector cannot see your application, session or request scope vars. About the only thing it can see is the cookie scope. With that in mind, you could do:
    if(isdefined(cookie.userfilespath) ){Config.UserFilesPath =”\cookie.userfilespath\”;}

    So, in application.cfm/cfc you set the cookie. However, if a user hits the page with the editor first, the cookie may not get set until your page hits the browser (normal CF behavior). However, when the server side runtime sets things up, and does not see your cookie, it appears to be setting config vars and caching them. If you hit refresh on the page, it still does not pick up your cookie value, its like it has it’s own session tied to your session. What I would expect is as soon as the upload dialog pops up, it would pick up the cookie value and set appropriately – not what I am experiencing. If your user starts at a page other than the page with the editor and gets the cookie set, it works as expected.

  326. Dirk on November 4th, 2009 1:27 pm

    Hey,

    is this hotfix included in CF9? I’m asking because I do get ClassNotFoundExceptions when I try to deserialize a Query…

    Dirk.

  327. Ravi on November 10th, 2009 9:16 am

    Hi Rakshith,

    How do I show ColdFusion.Log.info(message, component) as an alert using javascript? Do you have an example?

    Ravi

  328. Chris on December 7th, 2009 2:52 pm

    I stumbled upon this post while doing some research and thought you might be able to help.

    Is there a way to load a template when the page/form initially loads without the user having to go through the process of clicking the templates button and then selecting the template?

    The CF docs don’t have any mention of it (that I could find) but it seems like it would be a useful feature.

  329. Rakshith on December 7th, 2009 11:26 pm

    This is fixed in ColdFusion 9. Am surprised you are facing this issue. I suggest you log a bug for this right now using the ColdFusion bug tracker.

  330. Rakshith on December 7th, 2009 11:39 pm

    @ Hemangini: I am not very sure how you would do this without the support from the javascript calendar that you are using. The calendar should ideally expose an event to which you can attach you javascript function.

  331. Rakshith on December 7th, 2009 11:43 pm

    @Chris: I am not sure I got your question right. Can you explain a bit more?

  332. Rakshith on December 8th, 2009 12:06 am

    @Ravi: If you interested in alerting the message you should just stick to directly alerting your message rather than calling ColdFusion.Log.info.

  333. Chris on December 10th, 2009 1:55 pm

    You can create custom templates that the end user can open and use by clicking the Templates button in the toolbar and selecting from the list.

    Rather than having the user have to click the Templates button, I would rather have a custom template load automatically when the cftextarea first loads.

  334. Abram on December 11th, 2009 12:25 am

    Hi Rakshith,

    I am developing an online/offline app using the CF9 and AIR integration and following your MAX presentation, Jayesh’s blog post and cf9 docs (such as http://help.adobe.com/en_US/ColdFusion/9.0/Developing/WSB2CD9911-C22C-4313-90D6-6B0FCC75397D.html) and am having a bit of trouble accessing data using the session.load() methods (loadByPk, loadAll, loadByQuery, etc…). I do something like:

    var loadToken:SessionToken = session.load(Users,{username:”myuser”,password:”mypassword”});
    loadToken.addResponder(new mx.rpc.Responder(loadSuccess,loadFault));

    private function loadSuccess( event:SessionResultEvent ):void
    {
    var user:Users = event.result as Users;
    trace(user);
    }
    When I debug this the above the “user” object is null (so is event.result). I’ve also tried loadAll, loadByPk, loadByQuery and have the same results.

    Can you perhaps write a series of tutorials that explain these and other aspects of the AS/cfair.swc integration in detail? The documentation doesn’t and I can’t seem to find anything on the net about it.

    Thanks for all your good work!

  335. Abram on December 11th, 2009 12:28 am

    I should note that the Users class refers to the users table that really does exist and has data in the SQLite database (verifiable by using the SQLite Manager plugin for FireFox). I should also note that the syncing works between server/client so it appears my ORM mappings are correct.

    Any help is appreciated!

  336. Rakshith on December 11th, 2009 12:39 am

    Hey Abram,
    session.load method would return an array of user object instances. “event.result as Users” would result in a null as an Array cannot be cast to your Users object. Just trace your event.result and you should see all the results in the array.

    Let me know if this works.

  337. Abram on December 11th, 2009 10:23 am

    Thanks for the quick reply. Unfortunately I still get null. Here are my attempts:

    //var loadToken:SessionToken = session.load(Users,{user_name:”myusername”,password:”mypassword”});
    //var loadToken:SessionToken = session.loadByPK(Users,{ID:1});
    var loadToken:SessionToken = session.loadAll(Users);
    loadToken.addResponder(new Responder(loadSuccess,loadFault));

    private function loadSuccess( event:SessionResultEvent ):void
    {
    trace( event.result );
    }

    The trace( event.result ) just outputs a blank line. When I inspect in debug, event.result has a source property which is a zero length array.

    Any suggestions?

  338. Abram on December 11th, 2009 11:35 am

    Wooohoo!! I don’t really understand why yet, but I got it working. Here’s what I did and how I changed it to make it work. Please offer any advice on a better way of doing this.

    I have two files: LoginScreen.mxml and LoginController.as.

    My LoginScreen simply has a login form and a button, however, in the onCreationComplete I am initializing the CF syncmanager and doing my fetch, then stuffing the fecthed data (users table) into the SQLite.

    Then, when the login button is clicked it calls a handler that calls LoginController.authenticate() method.

    In the LoginController.authenticate method I was creating a new instance of syncmanager and opening a session with the same DB file and same session ID as in the LoginScreen.mxml.

    On success of opening the session I then was trying to do the session.load(…), which returned a null result.

    What I changed was that my handler on the LoginScreen.mxml now passes the session object in the LoginController.authenticate() call, and I use that session object instead of creating a new instance of the session.

    I’m not entirely sure why this worked and the other didn’t, but it works. I know what I’m doing is bad, and that I should create some kind of global session, but I’m not sure how yet. Could you perhaps suggest a way to make a global session that I can use throughout my application? Something like a ModelLocater? I’m really new to Flex so I’m sorry if this is silly stuff.

  339. Ranjith on December 28th, 2009 6:22 am

    I am planning to take coldfusion MX 7 certification now.I heard that Adobe have stoped offering this certification.So, Can you guys help me out?
    If I have to take CF 8. What is the difference between these two exams.
    I have been working in coldfusion for 2 years.
    Please gimme some info.

  340. Nicole on January 2nd, 2010 4:18 pm

    I’m using cftextarea with richtext = “yes” and html = “yes”; when I click the form’s reset button (whether using the input or cfinput tag), the cftextarea fields are not reset (i.e. cleared). Do anyone know how I can resolve this?

  341. Rakshith on January 3rd, 2010 9:44 pm

    @Ranjith: There will definitely be differences between the two exams. ColdFusion 8 has a lot of new functionality when compared to ColdFusion MX 7. I suggest you get in touch with those who have taken up the CF8 certification.

  342. Rakshith on January 4th, 2010 2:11 am

    @Nicole: You could set the value of the rich text editor using the ColdFusion.RichText.setValue(editorName, value). Setting it to empty would clear the field.

  343. Abram on January 5th, 2010 5:29 pm

    Hello again Rakshith,

    Running into a couple things that are a bit odd. Maybe they are bugs and I can log them, but likely are just my misunderstanding/misuse of the code:

    1. Self joins tend to choke. For instance, consider a “Users” entity with the following CFC structure:

    Notice the Users entity that has a ManyToOne relationship to itself via modifiedByUserID. If I create a cfm page that does:

    It works fine. It stops the recursion.

    Now if I try to saveUpdateCache() on the AS3 side on that entity the adl.exe process will continually consume more and more memory until the PC grinds to a halt. Doesn’t seem to be figuring out the circular reference. Again, the CFC side works in this configuration, just not the Air.

    2. Date types don’t seem to work properly. For instance, I have a property in my AS entity that looks like
    modified_datetime:Date;

    In my CFC I have a property:

    When I fetch (via fetchCFC) and saveUpdateCache the results it creates and populates the SQLite table properly. However, when I stop the debugger (or close the Air app) the adl.exe never dies. I have to then kill it via task manager.

    Any help is appreciated.

  344. Abram on January 5th, 2010 5:31 pm

    Doh! the blog stripped out my code. I blogged the issue on my site if you care to look a the details (www.cfxchange.com).

  345. mwoods on January 18th, 2010 12:38 am

    I seem to be having a problem. I am using CF 8.01 on Linux and I have followed the directions on this guide (which is great by the way) and I seem to be having some problem.

    I have made all of the changes and I have the proper permissions on the /userfiles directory but every time I try to upload an image I get an “Invalid file” error.

    I have checked the allowed extensions and jpg and gif images are in the allowed extensions.

    I’m at a loss and I really would like to use the FCKeditor for this client and allow them to upload and manager their own content. Any help would be appreciated.

    Thanks

  346. Franklin Aizpurua on January 18th, 2010 10:20 am

    Hi, thanks for the information, still, a question:
    How do I change the color for the mouse over in the header when I’m using a cfgrid in html mode, it seems I can’t use niether
    .x-grid-row-over td {background-color:#D5E8C8;} nor
    .x-grid-hd-over .x-grid-hd-text {background: #ffffc3; color: #000;} as Willene said. Don’t know if its different for flash and HTML formats, but I can’t get it to change, when I have changed everything else.
    Please help.

  347. Darren on January 28th, 2010 1:57 am

    Is there any way that you know to change the position of the loading animation in tags like cfdiv as it defaults to the top left corner which isn’t ideal.

  348. Vicki on January 28th, 2010 10:05 am

    can this (file fckconfig.js) be saved in local and modified without impating others? (if i only need for my app)

  349. Rakshith on January 28th, 2010 11:27 pm

    @mwoods: Can you give more details about the error? Are you sure you have followed all the steps? Also make sure to apply the security fix for CF 8.0.1 for the fckeditor file upload issue.

  350. Rakshith on January 28th, 2010 11:29 pm

    @Franklin: Are you on CF8 or Cf9? Also just to be sure, I am assuming that you have cleared the browser cache after making the changes.

  351. Rakshith on January 28th, 2010 11:30 pm

    @Darren: I always thought loading animation loads up in the center. Do you have any other style set on the parent tag that is causing the loading icon to shift the position?

  352. Rakshith on January 28th, 2010 11:32 pm

    @Vicki: I am not sure I understand you question completly. But yes fckconfig.js is a file that can be customized based on what configuration you desire.

  353. Vicki on January 29th, 2010 7:57 am

    hi Rakshith, What i understand is this file is stored in the server and i don’t want to mess with this because of the security. My question is if i can take this file and place in my local folder for particular app and modify it to work only for my app?

    thanks

  354. vicki on February 5th, 2010 9:33 am

    I followed the 5 steps above, but the code from upload/cfm/config.cfm has been encrypted, is there the way i can see the coldussion code?

    thanks

  355. Joshua Curtiss on February 10th, 2010 9:42 am

    Rakshith, what about having my ColdFusion server point to a separate, external BlazeDS service running on a different box? Is that possible? There seems to be a dearth of information on this scenario.

    Ideally, I would like to have my ColdFusion server be able to use the included BlazeDS server for remoting, but have it use my separate BlazeDS server for handling messaging.

    Thanks for any thoughts or links you may have.

  356. FALCONSEYE on February 10th, 2010 10:58 am

    Just found this entry. Great info, but I have a question. On IE 7, i click on insert/edit image button. Nothing happens when i click on the “browse server” button in image info tab. (in the image properties pop-up). Driving me nuts! This works in FireFox.

  357. FALCONSEYE on February 10th, 2010 11:02 am

    O wow, the retarded IE was somewhat blocking the second pop-up. #!!@#@!#! mikrosuk

  358. Rakshith on February 10th, 2010 10:01 pm

    Joshua, any specific reason you want use a separate BlazeDS server instead of the one that is integrated with ColdFusion?

  359. Chris S. on February 15th, 2010 6:51 am

    Thanks HEAPS for that post, man!

    OnChange was doin my head in….. I was using addEventListener to attach the event and it doesn’t simply fire by calling the onchange() function.

    However, your code here worked!!

    Thanks heaps, man!

  360. Manny on February 27th, 2010 10:20 pm

    BIG THANK YOU

  361. theUnseen on March 11th, 2010 11:19 am

    I am looking for this exact same thing, I have tried to follow your code and added the following to my app:

    //Fire event //On IE
    if(input_field.fireEvent)
    {
    input_field.fireEvent(’onChange’);
    }
    //Fire event On Gecko based browsers
    if(document.createEvent)
    {
    var evt = document.createEvent(’HTMLEvents’);
    if(evt.initEvent) { evt.initEvent(’change’,true, true); }
    if(input_field.dispatchEvent)
    {
    input_field.dispatchEvent(evt);
    }
    }

    It does not work on Firefox and Chrome, I have not test on other browsers. I use jQuery as the base framework for my app, how can i do this easier perhaps with jQuery??

  362. rizvisa1 on March 11th, 2010 3:03 pm

    Thanks a ton!!

  363. Doug on March 15th, 2010 12:44 pm

    Any talk of moving to the newer version of FCKeditor —> CKEditor?

  364. Debbie G. on March 17th, 2010 9:34 am

    To get the data to wrap in the columns, I’ve used .x-grid-row td {white-space:normal; text-decoration:none}

    But the column headers don’t wrap. What do I use to get the column headers to wrap?

  365. Debbie G. on March 17th, 2010 10:30 am

    I’ve found my answer. It’s .x-grid-hd-row td {white-space:normal; text-decoration:none; vertical-align:bottom}

    Do you know of a way to use CSS to set the background and text color of a CFGrid’s cell based on the value in the cell? Valid values for the cell are Yellow, Red, Green or Null/no color change. I’m using CF8, CFGrid format=HTML, IE7. Thanks.

  366. Anthony on March 25th, 2010 12:37 pm

    I’m having an issue with the “browse” button. I keep getting an Access denied. (403) error.

    According to the following post, all I have to do is rename the FCKEditor folder and update “this.BasePath” in the fckeditor.js file.

    http://www.ephost.com/support/index.php?_m=knowledgebase&_a=viewarticle&kbarticleid=212

    I tried that and now it’s a plain textarea. I even tried using the “Basepath” command and nothing.

    Any suggestions?

  367. Salim on April 6th, 2010 8:31 am

    Thank you very much, it works :)

  368. garence on April 17th, 2010 9:46 am

    I am trying to associate a stylesheet to a cftextarea that has its richtext attribute set to true, much like what the following declaration did via FCKeditor:

    fckEditor.config["EditorAreaCSS"] =
    “/css/fckeditor.css”;

    How do I accomplish this same thing with cftextarea?

  369. Ian on April 19th, 2010 9:39 pm

    What is the latest combinations of ColdFusion and FCKEditor / CKEditor please?

    Thanks in advance.

  370. Rakshith on April 20th, 2010 12:58 am

    @Chris – I am not aware about loading a custom template by default. But there could be an API that FCKEditor exposes that does this for you. Perhaps you could try asking users on the FCKEditor forums.

    @Doug- We will take a look at the new CKEditor in our planning for the next version.

    @garence – Setting this is not exposed through the CFTEXTAREA tag.

    @Ian – CF9 has version 2.6.4.1 of FCKEditor.

  371. Rakshith on April 20th, 2010 1:01 am

    @theUnseen – If you are using jQuery, i guess you do not have to worry about handling this as jQuery should take care of browser differences.

  372. Rakshith on April 20th, 2010 1:12 am

    @Jacky: Try clearing the browser cache after making changes to the fckconfig.js file. Also I am assuming that you haven’t modified the basepath attribute on the tag to change the location of the FCKeditor files.

    @Mike: Hmmm. That was an interesting piece of information.

    @Anthony: You will have to set the coldfusion.fckupload java arggument to true to enable file uploads.

  373. MikeG on May 4th, 2010 2:50 pm

    More on custom setting for \userfilespath\ in config.cfm in CF8. First question, has this customization been enabled in CF9?

    I am pretty confident that the reason the uploader cannot see application/session/client vars created in the applications is because application.cfm exists in the CFIDE directory. I think the solution would be for CFTEXTAREA to either take config argument that would include things like userfiles path or alternatively allow you to specify the name of the application that the instance is being called under so that you could have access to the application/session/client vars. In an intranet environment it does not make sense to have to make a copy for each app that wants to use the upload feature of cftextarea nor is sharing an upload resource a reasonable expectation.
    Just my .02