• Login
  • Register

DNN Forums

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

DNN 9.10.02, How to add Javascript

You are not authorized to post a reply.

Basic Member

Basic 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

    Veteran Member

      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 Tobisch

      dnnWerk Austria
      DNN Connect

      Veteran Member

      Veteran Member

        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.
        Tjep's digital agencyRegards,
        Tycho de Waard

        Tjep's digital agency
        We just love DNN
        You are not authorized to post a reply.

        These Forums are dedicated to discussion of DNN Platform.

        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 send an email to [email protected]
        2. No Advertising. This includes 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