Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsFCKeditorFCKeditorUsing the FckEditor Javascript API with the dnn fck providerUsing the FckEditor Javascript API with the dnn fck provider
Previous
 
Next
New Post
4/25/2007 8:04 AM
 

I am creating some custom controls that use the fckeditor and I need to grab the instance of the fckeditor created by the dnn fckeditor provider. I see that in the iframe the instance is named with the id of the hidden update field but using fckeditors javascript api I am unable to getinstance using that id.
My control does a callback instead of a postback and the fckeditor.text value doesn't get updated. If I had the instance name and used the fckeditor javascript api I could return that value in my callback. Any help would appreciated. Does anyone know what the instance name of the editor is? I know it is dynamicaly created to insure use of multible instances.

 
New Post
4/26/2007 6:53 AM
 

I have solved this Issue by using a javscript function that calls the FckEditors updatelinkfield before I make a callback this updates TextEditors.text value with the current Fckeditors Value then it works. Here is the javascript code if anyone needs it. This needs to be added to the page or included in a .js file so it is available.

 

// Some Class
function WTD_MyClass()
{
        this.UpdateEditorFormValue = function()
        {
                for ( i = 0; i < parent.frames.length; ++i )
                        if ( parent.frames[i].FCK )
                                parent.frames[i].FCK.UpdateLinkedField();
        }
}

function WTD_GetFck()
{
    
    var MyObject = new WTD_MyClass()
    MyObject.UpdateEditorFormValue()
}

So on my submit control I add the onclick("WTD_GetFck()") this does a quick update to the TxtEditor and then I can do whatever I need to in the codebehind for my control.

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsFCKeditorFCKeditorUsing the FckEditor Javascript API with the dnn fck providerUsing the FckEditor Javascript API with the dnn fck provider


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out