Published on: 18 August, 2013

How to allow javascript content in RadEditor DNN

Posted by andy | 3125 views 0 likes 0 favourites 1 comments
Tumblr Digg Google Plus

You may wonder why your javascript you have entered is not saved into the database in DNN. Well this is because there is a restriction on the text editor (RadEditor) that will strip out all the javascript syntax. In this tutorial, you will learn on how to enable the javascript to be added or inserted in the DNN.

Note: This illustration is applied to DNN version 6.x.x

Go to your root folder > DesktopModules > Admin > RadEditorProvider.

ConfigFile Location Path

Then looks for wording ContentFilters as shown below:

RadEditor ContentFilters

You can leave the value to "None", if you do not want to perform any filters, or you can have a look on those available filters. Those filters references are from sourced from Teleric website.

Filter Name Description
None No filters
RemoveScripts This filter deletes the script tags to reduce the possibility of cross-site scripting and other script-related problems
EncodeScripts This filter encodes all script tags from the content.
MakeUrlsAbsolute This filter makes all src and href attributes in the editor content have absolute URLs
FixUlBoldItalic This filter remove deprecated U tags and replace them with CSS - XHTML
FixEnclosingP This filter removes a paragraph if the whole content is inside it
IECleanAnchors This filter removes the current page href from all anchor (#) links
MozEmStrong This filter changes b,strong and i,em in Mozilla browsers
ConvertFontToSpan This filter changes deprecated font tags to compliant span tags
ConvertToXhtml This filter converts the HTML from the editor content area to valid XHTML
IndentHTMLContent This filter indents the HTML content so it is more readable when you view the code
ConvertCharactersToEntities This filter converts reserved characters to their html entity names.
ConvertInlineStylesToAttributes This filter converts XHTML compliant inline style attributes to Email compliant element attributes.
PdfExportFilter This filter fixes some pdf export issues.
DefaultFilters This filter enables all default filters

Note: if you want to use more than filter, you can separate them by comma.

Commented on: 30 Nov, 2017 12:35:38 AM
Worked perfectly, thank you :)
Write Comment
0 characters entered. Maximum characters allowed are 1000 characters.
Share your article with us and add your own google adsense account to earn extra money. Plus, you can promote a link back to your site.
Related Articles
Published on: 28 January, 2018
Sometimes when you create your own DNN Modules, you want to get access to Module settings outside of the PortalModuleBase class. By default, by inheriting the PortalModuleBase you can get the module settings easily by using the following code. Let says you have a setting name called HeaderText.
Published on: 22 May, 2016
If you want to use Gmail SMTP in your DNN website, this can be easily done by specifying the correct port 587 in the SMTP settings. Unfortunately, there is no port number field supplied in the SMTP settings form. So in order to include the port number, you just need to add the in the SMTP settings.
Published on: 21 May, 2016
There are two options to setup the skin template into the DNN website, the first option is to globally set all pages using the default skin template and the second option is to set the skin template manually to each page. Usually when you create skin templates in DNN, there are at least 2 skins will be created. One would be the home page skin and the rest is the generic page skin.
Published on: 19 January, 2016
One of the best feature you can use in ASP.Net is Web API. The framework make it so easy to build HTTP services for browsers, mobile devices or other online applications. It is an ideal choice if you want to build a restful applications.
Related Tutorials
Published on: 17 February, 2017
In this tutorial you will learn how to install a DNN theme package. Before you can install the DNN skin package. You will need to log in as a super account user. The way to install the skin is exactly the same to install a module extension.
Published on: 14 May, 2016
Learn how to create your first new skin template in DNN. You will also learn what are required to create the DNN skin template and what is the structure of the template looks like.
Published on: 14 April, 2016
DNN has a built in Localization framework to help you create website with multiple languages support. By default, the common HTML module shipped in DNN installation does support this feature. Unfortunately, not all of the third party modules available would be able to support multiple languages. If they do, usually they only support the languages via resx files.
Published on: 05 February, 2016
In this tutorial you will learn how to create your first DNN module. This will be a basic module that will display Hello World. You will learn also how to get a module setting and save the value into module settings table and display it on the screen.