Quantcast
Channel: Sitefinity – Falafel Software Blog
Viewing all articles
Browse latest Browse all 73

How to Add Script in RadEditor Content

$
0
0

You may need to add scripts in your blog post, news content and any other module with RadEditor. By default, script tags are removed when saving / editing content. RadEditor comes with very good filters to configure it the way you want it.

For example, if we want to add scripts in our blog posts. Go to Administration > Settings > Advanced > Blogs > Controls > PostsBackend > Views > BlogsBackendInsertPost > Sections > MainSection > Content

You’ll see Rad Editor’s content filters. Add EncodeScripts and save changes. Please note that it will override the default filters settings and editor will only use the filters you mentioned. If the Rad Editor’s content filters text box is empty, editor by default uses following filters:

  • EncodeScripts
  • FixUlBoldItalic
  • FixEnclosingP
  • IECleanAnchors
  • MozEmStrong
  • ConvertFontToSpan
  • ConvertToXhtml
  • IndentHTMLContent
  • ConvertCharactersToEntities
  • ConvertInlineStylesToAttributes
  • PdfExportFilter

You can now add scripts to your content which will execute when rendered on page.

Add scripts to content

Happy coding!

And we know you want to learn more! So, register now for FalafelCon 2014 and perfect your skills, expand your horizons, and get inspired.

The post How to Add Script in RadEditor Content appeared first on Falafel Software Blog.


Viewing all articles
Browse latest Browse all 73

Trending Articles