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 ForumsFCKeditorFCKeditorDisable HTML posting for SecurityDisable HTML posting for Security
Previous
 
Next
New Post
11/21/2006 5:38 PM
 

I dont want users to post any html tags for security reasons. Is there a way to disable the HTML posting?

Thanks

 
New Post
11/21/2006 9:27 PM
 

There are a couple of things you can do.
First:
Make sure that there is no "Source" toolbar item in the toolbar assigned for your users.

Second:
The user can select between the Basic Text Box and the Rich Text Editor. When the Basic Text Box is selected, there are options under the editor box for Text, HTML or Raw.
To prevent this you will have to change the .aspx for the page that displays the editor to something like this:
<dnn:TextEditor id="Message" runat="server" choosemode="false" defaultmode="Rich" />
This will prevent users from selecting the Basic Text Box option.

Any HTML tags entered in while in the Rich Edit mode will be encoded and displayed as such.

As a side note, I would like to see options for this, for any module that allows users other than the Administrator, in the module settings of that module.


-Dan
 
New Post
11/21/2006 10:35 PM
 

well, you are posting on a forum dedicated to an html editor. The option you are looking for does not depend on this provider features, it depends of the module features and/or the text/html editor control.

One suggestion could be to modify the file controls/TextEditor.ascx and change the Visible="True" to Visible="false" for the panel with id="pnlOption"

There are other options, but most of them are twicking this control (a core control)


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 ForumsFCKeditorFCKeditorDisable HTML posting for SecurityDisable HTML posting for 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