DNN Forums

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

CK Editor in DNN 9.x getting rid of <object> tag and in-line SVG tags

Sort:
You are not authorized to post a reply.





Growing Member





    I can put them in, but then they disappear from the code when I open CK Editor again... they are still visible within the generated HTML


    Is this a bug?

    Is there a way to stop this stripping of the coding?






    Veteran Member





      1. you can switch the HTML editor to 'text only' - raw mode. Mind you, after saving and opening the HTML editor again, the editor might seem empty. If you switch to raw, you'll find the code again. So, don't 'save' where the HTML editor stripped your code.
      2. You can edit what is being stripped in the HTML Editor manager. This resides under Site Settings - Site behaviour - More. In the tab 'Editor config' you'll find a lot of options. Look for the part that says RemoveFormat (tags and attributes).

      The editor used to be on a page. Since it is part of the PersonaBar, you need to scroll up and down a bit, but it's all there.
      Tjep's digital agencyRegards,
      Tycho de Waard

      Tjep's digital agency
      We just love DNN
      https://www.tjeps.com





      Veteran Member





        This is a security function of the CKEditor that prevent users form entering unauthorised HTML.
        You can read more about this "ACF" and what editor configuration you can change to prevent this here.
        https://ckeditor.com/docs...st/examples/acf.html






        Veteran Member





          I disabled ACF on one site (where I really am the only content editor) and that solved the problem in which the editor was removing class attributes from certain tags.
          Joe Craig
          DNN MVP
          Patapsco Research Group





          Veteran Member





            Posted By Timo Breumelhof on 02 Jul 2020 09:29 AM

            This is a security function of the CKEditor that prevent users form entering unauthorised HTML.
            You can read more about this "ACF" and what editor configuration you can change to prevent this here.
            https://ckeditor.com/docs...st/examples/acf.html

            You can very granularly set ACF, simply swtiching it off is only advisable if there are no "external" users editing content (like in a forum).
            For more granular configuration: https://dnncommunity.org/...-is-cleaning-my-HTML

             

             

            You are not authorized to post a reply.

            These Forums are dedicated to the 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 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