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  |  

  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
 


  Sponsors  

Meet Our Sponsors

Red-Gate Software
MaximumASP
SourceGear - Tools for Developers
.: CounterSoft :.
telerik
ExactTarget email software solutions
 


DotNetNuke Forums
 
  Forum  DotNetNuke® Pro...  FCKeditor Provi...  Can NOT load text in default mode....
Previous Previous
 
Next Next
New Post 4/25/2007 4:03 PM
User is offline Alfonso Bastias
205 posts
www.filapedia.com
9th Ranked


Can NOT load text in default mode.... 

I want to load the control with some text....Assuming that txtDef is a HTML Control (FCKEditor)

<%@ Register TagPrefix="dnn" TagName="TextEditor" Src="~/controls/TextEditor.ascx"%>
<dnn:texteditor id="txtDef" runat="server" height="400" width="500" />

If I do (C#):

txtDef.Mode = "Basic";
txtDef.Text = "What´s going on";

Everything is OK (I see the text under the text control), But If I want to load the RichText mode, I should change the code lines for:

txtDef.Mode = "Default";
txtDef.Text = "What´s going on";

Nothing Happend, the text are is empty. What am I doing wrong?

Thabnks for your help,

Alfonso

 

 
New Post 4/26/2007 4:08 PM
User is offline Alfonso Bastias
205 posts
www.filapedia.com
9th Ranked


Re: Can NOT load text in default mode.... 

Any help?

 
New Post 4/26/2007 6:41 PM
User is offline Mauricio Márquez
988 posts
dnn.tiendaboliviana.com
7th Ranked






Re: Can NOT load text in default mode.... 

The correct code is:

txtobj.Mode="RICH"

The possible values for that are: "BASIC", "RICH"

Take into consideration that setting the mode will change the user preference as well. The user will see the same mode next time he enters a module that uses the editor..


Locopon
Free modules: E-commerce, Complete localization (Portal, page, module settings, skins, etc.), Secure Login, and more
http://dnn.tiendaboliviana.com
 
New Post 4/27/2007 6:00 AM
User is offline Alfonso Bastias
205 posts
www.filapedia.com
9th Ranked


Re: Can NOT load text in default mode.... 

I figure out the problem, but not the solution...

I created a module (.ascx), that include another userwebcontrol (.ascx), which include the dnn:texteditor. If I load the info in the first control (module), everything goes ok, however my situation requiere that the second control (which is included in the module) should have the texteditor. This editor wont work in RichText mode, but work ok in the basic mode. Probable I am doing something wrong in the initial configuration (init, load, or similar trigger)....

Do you know what can I do to skip this problem?

Thanks

 
New Post 4/27/2007 10:26 PM
User is offline Mauricio Márquez
988 posts
dnn.tiendaboliviana.com
7th Ranked






Re: Can NOT load text in default mode.... 

well, it is difficult to help with no information. Try to explain our problem and give us details (Maybe pieces of code). At this time I only know that yo have a problem......but.....what is your problem?....how are your trying to do that? where are you instantiating the .ascx.? where are you instantiating the editor?....

Do you get what I mean?


Locopon
Free modules: E-commerce, Complete localization (Portal, page, module settings, skins, etc.), Secure Login, and more
http://dnn.tiendaboliviana.com
 
Previous Previous
 
Next Next
  Forum  DotNetNuke® Pro...  FCKeditor Provi...  Can NOT load text in default mode....
 


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.

 


Willhite & Sharron Realtors
Exemplary service for your Seattle Real Estate needs. It's what you deserve from your Realtor®!
www.alkihomes.com
PointClick DotNetNuke Solutions
PointClick Technologies provides high-end DNN Hosting for businesses.
PointClick.Net Hosted Solutions
Active Modules, Inc.
Creators of Active Forums, the best forum module for DotNetNuke
www.activemodules.com

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