*
*
*
*
ForumsRegister | Login 
Subject: Defaulting the Text/HTML module to Rich Text Editor Mode
Prev Next
You are not authorized to post a reply.

AuthorMessages
dnnstuffadminUser is Offline
DNNStuff Founder
Site Member
Site Member
Posts:1239


03/30/2005 4:29 PM Alert 

If you are like me, you'd rather just have the Text/HTML module default to Rich Text Editor Mode instead of text mode. You can do it with a little change to the /DesktopModules/HTML/EditHtml.ascx file and it doesn't require a recompile.

Edit the file and change the reference to this (it's around line 6) :

<dnn:TextEditor id="TextEditor1" Width="800" Height="400" runat="server" Mode="R" DefaultMode="R" />

The key here is adding the Mode and DefaultMode attributes. From messing about with it, I found that they can be either R for Rich Text or T for Text. I also changed the default width and height because I found they were too scrunched up to do any real life editing.

I also found a couple other attributes that might come in handy. ChooseMode which is a boolean that allows you to switch between text or rich text and ChooseRender which is also a boolean but I'm not sure what that does :?:


Richard Edwards
DNNStuff Founder
You are not authorized to post a reply.
Forums > General > DotNetNuke > Defaulting the Text/HTML module to Rich Text Editor Mode



ActiveForums 3.6
DotNetNuke Sponsor

DotNetNuke Powered!

Copyright (c) 2005-2008 DNNStuff
*
Terms Of Use   Privacy Statement