DNN Forums

Ask questions about your website to get help learning DNN and help resolve issues.

DNN 9.10.02, How to add Javascript

 2 Replies
 2 Subscribed to this topic
 40 Subscribed to this forum
Sort:
Author
Messages
Growing Member
Posts: 56
Growing Member

Is there a setting in addition to the "Linkjavascriptlinksallowed" checkbox in the HTML CKeditor? I'm trying to add the Facebook news feed to tehe site, but it seems to be removing the Javascript code supplied by FB. My other sites of older versions are working fine, so perhaps there is another setting I don't know about yet?LinkJavaScriptLinksAllowed:LinkJavaScriptLinksAllowed:LinkJavaScriptLinksAllowed:LinkJavaScriptLinksAllowed:LinkJavaScriptLinksAllowed:LinkJavaScriptLinksAllowed:LinkJavaScriptLinksAllowed:LinkJavaScriptLinksAllowed:LinkJavaScriptLinksAllowed:LinkJavaScriptLinksAllowed:LinkJavaScriptLinksAllowed:

Veteran Member
Posts: 1182
Veteran Member
MVP
MVP
You're an MVP!

You should be able to do this by configuring CK Editor. There are several articles in the blog about this, eg Customizing DNN’s Default HTML Editor Provider, or Help! DNN CKEditor is cleaning my HTML.

Anyway, I would not allow JavaScript directly in the editor. The (imho) better solution is to use an injection module, e.g. Will Strohl's Content Injection Module.

Happy DNNing!
Michael

Michael Tobisch
DNN★MVP

DNN Connect
Veteran Member
Posts: 838
Veteran Member
3 Helpful Replier
Helpful Replier
Thanks for being such a helpful replier!
New Poster
New Poster
Congrats on posting!
You could also try to use the raw version instead of the HTML version.
The HTML version will strip some stuff as defined in the HTML editor extension. Amongst them javascript, span, div etc.

If that doesn't work, you can also put the javascript in the module header or the page header.

These Forums are for the discussion of the open source CMS DNN platform and ecosystem.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. If you have (suspected) security issues, please DO NOT post them in the forums but instead follow the official DNN security policy
  2. No Advertising. This includes the promotion of commercial and non-commercial products or services which are not directly related to DNN.
  3. 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.
  4. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  5. No Flaming or Trolling.
  6. No Profanity, Racism, or Prejudice.
  7. Site Moderators have the final word on approving / removing a thread or post or comment.
  8. English language posting only, please.

Would you like to help us?

Awesome! Simply post in the forums using the link below and we'll get you started.

Get Involved