Skip to main content
Inspiring
May 1, 2009
Question

FCKeditor 2.6.4 with ColdFusion.Ajax.submitForm doesn't post changes Help!

  • May 1, 2009
  • 1 reply
  • 564 views

I've noticed a critical bug that I inadvertently posted to production code so I need help! I switched from the built-in FCK editor in <cftextarea> to the newest stand-alone version. It works except it wont POST changes you made to the text, just the initial text when using ColdFusion.Ajax.submitForm(). Each instance name has a unique name but still no help! Attached is how the editor is created within a CFC function

<!--- Create editor instance --->
<cfset var.editorName = "editor" & RandRange(1, 1000000)>     

<cfscript>
                "var.#var.editorName#" = createObject("component", "FCKEditor.fckeditor");
                Evaluate("var.#var.editorName#").instanceName="#ARGUMENTS.name#";
                Evaluate("var.#var.editorName#").basePath="/editor/";
                Evaluate("var.#var.editorName#").value="#ARGUMENTS.value#";
                Evaluate("var.#var.editorName#").width="#ARGUMENTS.width#";
                Evaluate("var.#var.editorName#").height="#ARGUMENTS.height#";
                if (ARGUMENTS.toolbar NEQ "") {
                    Evaluate("var.#var.editorName#").toolbarSet="#ARGUMENTS.toolbar#";
                }
                Evaluate("var.#var.editorName#").create();
        </cfscript>

This topic has been closed for replies.

1 reply

Inspiring
May 1, 2009

Figured it out..... FCK generates a hidden field that is updated on submit, since I'm not actually doing a traditional POST, its not updating the field, you need to integrate this function before you do the submit  to update the data.........

FCKeditorAPI.GetInstance('myInstance').UpdateLinkedField();