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 ForumsFCKeditorFCKeditorCan NOT load text in default mode....Can NOT load text in default mode....
Previous
 
Next
New Post
4/25/2007 7:03 PM
 

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 7:08 PM
 

Any help?

 
New Post
4/26/2007 9:41 PM
 

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 9:00 AM
 

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/28/2007 1:26 AM
 

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
 
Next
HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsFCKeditorFCKeditorCan NOT load text in default mode....Can NOT load text in default mode....


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