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...Module ForumsModule ForumsRepositoryRepositoryDNN Repository - RichText Box Security!DNN Repository - RichText Box Security!
Previous
 
Next
New Post
10/23/2006 5:52 PM
 

How can you disable the rich text editor for users uploading files?  When a user has access to the RichText Editor they can browse the server and see all files...  This should definately not be the case

 

 
New Post
10/24/2006 12:24 AM
 

There's a way of disabling it within the .ascx but I don't have any of my code here on my home computer. I'll check my work computer tomorrow morning to see how I did it on a module I wrote there but it wasn't templated like the Repository so I'm not 100% sure it would work without having to do the change in the .vb and recompiling the Repository project.

An alternative is to use the FCKeditor. You can configure the tool bars with that editor so you could pull the ability to browse the server. I'm not sure which editor the this site is running (either FCK or the default FTB) but if it's FTB there must be a way to edit it as well as only the image gallery is listed.

 
New Post
10/24/2006 10:52 AM
 

Okay, in a normal .ascx you would put the following in the tag for the texteditor....  ChooseMode="False" Mode="BASIC". Unfortunately to do the same for the Repository means changing the code behind. If you want to do that let me know and I'll point you to where the code has to be changed.

I tried to find out if you could do the same with the FTB as you can with the FCK Editor as far as the toolbars go and you can but again it has to be done in the .ascx unlike changing a couple of javascript files for the FCK Editor. If users seeing the files is a concern for you I'd look at switching to the FCK editor.

 
New Post
10/27/2006 9:22 AM
 
Hi Mikeh, Could you please paste instructions on how to make it only basic and make the selection only text, rather than raw or html. Thanks very much,
 
New Post
10/27/2006 10:48 AM
 

For the Repository?? This is the quick way. If the demand is there and it doesn't break other textbox providers I'll talk to Steve about adding it to the Repository properly so that it can be set in the .XML files.

Open up Form.ascx.vb and do a search of the document for TESummaryField. Around line 370 you should find an If statement that is as follows: If Not TESummaryField Is Nothing Then..... In that If statement put the following lines (I do it right before the End If):
TESummaryField.ChoosMode = False
TESummaryField.Mode = "BASIC"
TESummaryField.ChooseRender = False
TESummaryField.TextRenderMode = "Text"

If you scroll down a little bit you'll see TEDescriptionField. Look for the same If statement as above for the TEDescriptionField (about line 395) and add the same lines as above but change TESummaryField to TEDescriptionField.
TEDescriptionField.ChoosMode = False
TEDescriptionField.Mode = "BASIC"
TEDescriptionField.ChooseRender = False
TEDescriptionField.TextRenderMode = "Text"

Recompile the Repository Project and test to make sure it works the way you want it to.

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsRepositoryRepositoryDNN Repository - RichText Box Security!DNN Repository - RichText Box Security!


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