• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

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

Explorer ,
May 01, 2009 May 01, 2009

Copy link to clipboard

Copied

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>

TOPICS
Advanced techniques

Views

507

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
May 01, 2009 May 01, 2009

Copy link to clipboard

Copied

LATEST

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();

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation