DNN Forums

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

Editor removes styling from pages

Sort:
You are not authorized to post a reply.





Growing Member





    I am not sure how I am supposed to create pages when the editor removes the style elements. I read one post which said to add *[*] to Extra Allowed Content. That does not work for me (DNN 9.8.1).

    But the larger question is, where do i create/install css pages? Inline styling is frowned upon. So where/how do i create css? I guess i could use css which came with my theme but then those classes would be stripped from the page as well.

    at this point i can only but create the barest and most primitive pges and i am the world's worst page designer. i won't bother to post the html as i believe it would be stripped from my comment.






    Growing Member





      Hi Tony,

      I believe your own CSS classes or other styling can be added to the Custom CSS section in the settings area. This should allow you to perform systemwide styling and thus also reuse it in several pages.

      According to other posts you do need to add the *(*)*{*} in order to save html with classes in your pages.



      # DnnBro






      Veteran Member





        I just checked a site that doesn't remove html tags,

        Under Site Settings, Site Behavior, More, Open HTML Editor Manager I went to the Editor Config tab. There the first box, labelled, AllowedContent, contains "true"

        You might want to try that.
        Joe Craig
        DNN MVP
        Patapsco Research Group





        Growing Member





          Posted By Joe Craig on 16 Apr 2022 04:24 PM
          I just checked a site that doesn't remove html tags,

          Under Site Settings, Site Behavior, More, Open HTML Editor Manager I went to the Editor Config tab. There the first box, labelled, AllowedContent, contains "true"

          You might want to try that.

          some progress was made. i was able to add a styling element to a

          • tag. when i saved it, the rendered page was as i expected. when i edit the html module, the style element was gone. and saving of course gave an unwanted rendition. this is insane. 

             

             

             






          Growing Member





            I finally got it to work. thank you joe and bro. i used each of your recommendations. once i get the basics working, maybe i can create the custom css.





            Growing Member





              Always glad to help :-)

              When you have time please post your final solution so other forum members can learn from your experience, should they end up in the same situation.

              #DnnBro





              Growing Member





                Posted By DnnBro on 17 Apr 2022 12:55 AM
                Always glad to help :-)

                When you have time please post your final solution so other forum members can learn from your experience, should they end up in the same situation.

                #DnnBro

                To be more explicit:

                1. Add value *(*)*{*}  to Extra Allowed Content in Configure Editor

                2. Add value true to Allowed Content in Configure Editor

                Navigation: "Under Site Settings, Site Behavior, More, Open HTML Editor Manager I went to the Editor Config tab. There the first box, labelled, AllowedContent, contains "true""

                If your html module does not behave correctly, you may need to configure it using the link below the module editor.

                 






                Veteran Member





                  @Tony

                  DNNBro is correct, if you have superuser rights, you can add your own css. It is on portal level, so if there are multiple portals in the instance, make sure, you have the correct one.

                  If you are not a host user, you can ask the host to add an @import css rule at that spot and work in your own css file using the file manager or FTP.

                  Tjep's digital agencyRegards,
                  Tycho de Waard

                  Tjep's digital agency
                  We just love DNN
                  https://www.tjeps.com
                  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