Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

AspDotNetStoreFront
  Ads  
r2i.ntegrated
 


  Sponsors  

Meet Our Sponsors

Merak Mail Server
WebSecureStores -- ASP.NET & DotNetNuke Hosting Solutions
FCKeditor Project
Salaro -- Skins and more
OnyakTech
CrystalTech Web Hosting™
 


DotNetNuke Forums
 
  Forum  DotNetNuke® Pro...  ClientAPI Compo...  Accessing TextEditor from callback
Previous Previous
 
Next Next
New Post 10/30/2007 4:56 AM
Unresolved
User is offline Steve Pascoe
10 posts
10th Ranked


Accessing TextEditor from callback 

I've found this post helpful

i'm essentially trying to access the entered html from a TextEditor dnn control (like freetextbox or FCKEditor). I cant locate its content thru request.form (probably due to the fact that the editor's content is generated in an iFrame).

Due to the complexity of this type of control, is grabbing its value in a callback impossible?

 
New Post 10/30/2007 9:21 AM
User is offline Jon Henning
1622 posts
www.codeendeavors.com
5th Ranked










Re: Accessing TextEditor from callback 

This question really is about interacting with the editor from the client side using its object model.  Each editor will have its own interfaces to grab the text.  For example, FCKEditorAPI

Once you have the HTML, the callback logic could be used just like normal.


 
New Post 10/30/2007 10:29 AM
User is offline Steve Pascoe
10 posts
10th Ranked


Re: Accessing TextEditor from callback 

The only work around i found was to implement each independent text editors JavaScript API

So i got references from the major text editors:

  • http://wiki.fckeditor.net/Developer's_Guide/Javascript_API
  • http://cutesoft.net/developer+guide/javascript-api.htm
  • http://freetextbox.com/demos/javascript.aspx
  • http://www.telerik.com/help/radeditor/5.6/?r.a.d.editor%20Client-Side%20Events.html

And the JS looks something like this:

function storeDescFCK(ctx)
{
    var oEditor = FCKeditorAPI.GetInstance(ctx + '_txtDescription_txtDescription');
    dnn.setVar('Desc', oEditor.GetHTML());
}
function storeDescFTB(ctx)
{
    dnn.setVar('Desc', FTB_API[ctx + '_txtDescription'].GetHtml());
}
function storeDescCute(ctx)
{
    var oEditor = document.getElementById(ctx + '_txtDescription');
    dnn.setVar('Desc', oEditor.getHTML());
}
function storeDescRad(ctx)
{
    var oEditor = GetRadEditor(ctx + '_txtDescription');
    dnn.setVar('Desc', oEditor.GetHtml());
}

And i do a dual js call on the onclick event (one is to implement on of these functions, the other is the callback. These two are separated by a ;  ... ie:    d be better if i didnt have to dig this deep. Any suggestions?

 
New Post 10/30/2007 10:32 AM
User is offline Steve Pascoe
10 posts
10th Ranked


Re: Accessing TextEditor from callback 

i guess i was hoping (from a module ISV point of view) that i could have a solution which wouldnt require digging that deep.

Aside from the editors mentioned, any major ones i'm missing? I guess i could have a check to see if the portal doesnt have a supported text editor and display a plain textbox instead.

hmmm...

 
New Post 10/30/2007 3:47 PM
User is offline Jon Henning
1622 posts
www.codeendeavors.com
5th Ranked










Re: Accessing TextEditor from callback 

Sorry I haven't looked that closely at the text editor situation.

Sounds like you are having to implement something similar to what I did in the ClientAPI with the XMLHTTP object, where in IE I use an ActiveX control, in FireFox/Mozilla I use another object, and in Opera/Safari, I coded it completely in javascript.   Basically I created a standard interface that wrapped each implementation so that the calling code doesn't care.  I'm guessing you may want to do something similar so you can protect yourself from future changes or new implementations.


 
Previous Previous
 
Next Next
  Forum  DotNetNuke® Pro...  ClientAPI Compo...  Accessing TextEditor from callback
 


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.

 


Windsor Management Group
Fund Accounting Software for K12 Education.
Infinitevisions.com
Convert Visitors to Customers
In order to bring value to your users, we must first understand them. VIVIDSITES will help you build a custom web application and interactive marketing tools that your users will thank you for. We marry high-end creative with head banging technology to entertain and convert visitors into paying customers. Call 314.514.0505 or visit us at http://www.vividsites.com to find out how.
- V I V I D S I T E S -
Gearworx Web Hosting
As a premier provider of Web Hosting, Private/White Label hosting, Server Colocation, Dedicated Server, and other Managed Services, Gearworx offers an array of services designed to more effectively manage strategies driving businesses on the Web. Headquartered in Fremont, California our state of the art tier one data centers and distributed managed services environment enables Gearworx to offer your business enterprise level solutions through simplified processes.
Gearworx Web Hosting

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP