Download DOWNLOAD
Forums FORUMS
Blogs BLOGS
Forge FORGE
Help HELP
Marketplace MARKETPLACE
DotNetNuke Home
You are here >   Community > Forums
Register  |  Login

DotNetNuke Forums

DotNetNuke ForumDotNetNuke ForumDotNetNuke Forg...DotNetNuke Forg...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 6: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 4: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
DotNetNuke ForumDotNetNuke ForumDotNetNuke Forg...DotNetNuke Forg...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

Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

Networks

Follow DNNCorp on Twitter

LinkedIn

Follow us on Twitter @DNNCorp or join the DotNetNuke Community on LinkedIn

Sponsors

DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation

Hosted by MaximumASP