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

HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...How do I allow scripts in RadEditor?How do I allow scripts in RadEditor?
Previous
 
Next
New Post
8/24/2010 1:56 PM
 
I need to be able to place javascript into my text content using the RadEditor. I have tried adding '<property name="AllowScripts">false</property>' to "HtmlEditorProviders/Telerik/Config/ConfigDefault.xml" but I am getting an error, "Could not load RadEditor. Property assignment is not supported [AllowScripts]." This is strange, because I also have added, "<property name="NewLineBr">false</property>" to the ConfigDefault.xml file, and it works. Both the AllowScripts and NewLineBr properties are members of "Telerik.Web.UI.RadEditor" so I don't understand why one works while the other does not.

Could someone explain how to allow javascript code in the RadEditor, please?

JF Logomark

Kurt Meredith

Web Developer
Johnson Ferry Baptist Church
Marietta, Georgia

www.johnsonferry.org

 
New Post
11/3/2010 6:03 AM
 
because :o( :

DotNetNuke.HtmlEditor.TelerikEditorProvider.EditorProvider
 
    Public Sub New()
        Me._panel = New Panel
        Me._editor = New RadEditor
        Me._propertiesNotSupported = ",ContentProviderTypeName,ToolProviderID,Modules,AllowScripts,DialogHandlerUrl,RegisterWithScriptManager,ClientStateFieldID,Enabled,Visible,ControlStyleCreated,HasAttributes,ClientID,ID,EnableViewState,NamingContainer,BindingContainer,Page,TemplateControl,Parent,TemplateSourceDirectory,AppRelativeTemplateSourceDirectory,Site,UniqueID,Controls,ViewState,ViewStateIgnoreCase,"
        Me._portalRootPath = New String() { FileSystemValidation.EndUserHomeDirectory }
        Me._isControlInitialized = False
        Me._languageSet = False
        Me._providerConfiguration = ProviderConfiguration.GetProviderConfiguration("htmlEditor")
        Me.objProvider = DirectCast(Me._providerConfiguration.Providers.Item(Me._providerConfiguration.DefaultProvider), Provider)
        Me._TrackException = Nothing
        Me._rootImageDirectory = String.Empty
        Me._toolsFile = String.Empty
        Me._configFile = String.Empty
        Me._filterHostExtensions = True
        Me._providerPath = String.Empty
    End Sub
 
New Post
11/3/2010 6:24 AM
 
You should try:

<property name="ContentFilters">ConvertCharactersToEntities,ConvertFontToSpan,ConvertToXhtml,FixEnclosingP,FixUlBoldItalic,IECleanAnchors,IndentHTMLContent,MakeUrlsAbsolute,MozEmStrong,OptimizeSpans,PdfExportFilter</property>

Instead:
<property name="ContentFilters">DefaultFilters</property>
 
New Post
11/3/2010 9:26 AM
 
I'll assume you're using the Core DNN RadEditor provider. If you use the DnnWerks RadEditor Provider you can allow scripts, and allow them for only a certain Role (Admin) if you choose. This can be set-up in the RadEditor Configuration module of the DnnWerks Provider.


 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...How do I allow scripts in RadEditor?How do I allow scripts in RadEditor?


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