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  
Webhost4Life - $4.95 Windows Hosting
 


  Sponsors  

Meet Our Sponsors

Webhost4life, specialists in DNN hosting
Mad Development is a full service interactive agency focusing on the merge of design, technology, e-commerce, and affiliate marketing by providing total website solutions.
SteadyRain
DataSprings - Great Ideas. Always Flowing.
R2integrated - formerly bi4ce
Jango Studios - Skins, Modules and Hosting for DotNetNuke
 


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.

 


Personify Design, Inc.
Seattle-based Personify Design has developed customized DotNetNuke websites for a wide range of customers to meet many different types of needs, including distributed authorship across thousands of pages to integrated Verisign e-commerce capabilities.
www.personifydesign.com
DNN Outsourcing
50% more affordable services comparing to Western Europe and US: Custom DotNetNuke module development, skins, consulting, maintainence... Over 15.000 working hours of experience in custom DotNetNuke Solutions development, 8 years experience in outsourcing, excellent references!
www.dnnoutsourcing.com
Expressnet - DotNetNuke Hosting
Expressnet provide premium quality ASP.NET Web Hosting. We specialise in Windows based products including ASP.NET and Microsoft SQL Server. We offer fantastic value packages for DotNetNuke hosting. We also offer free asp.net web hosting
www.expressnet.com.au

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