Inline CSS properties are removed from a table in Guide upon publishing the article

3 댓글

  • Jim Davenport

    Hi Matthew Pavkov

    By default, Zendesk Guide strips what it deems to be unsafe HTML from article content.  This includes inline styles on elements.

    You could try allowing unsafe HTML within articles to see if that makes a difference.

    Cheers,

    Jim

    Zenplates - Custom themes for Zendesk

    0
  • Ifra Saqlain
    Community Moderator

    Hey,

    Create simple table with article source code. Add these given code:

    .article-body td{     // Or you can add your own parent class of article page with td
    border:1px solid #ddd;
    }

    table {
      border-collapse: collapse;
      border-spacing: 0;
    }

     

    Thanks

    Team

    0
  • Daniel Merriott

    Is there any chance Zendesk could add the data- attributes to the safe list please? (or perhaps add an option form admins to allow data- attributes without enabling other html)? I would be keen to keep the safety settings as that generally makes sense but not having access to the very commonly used data- attributes is a bit limiting.

    Cheers

    0

댓글을 남기려면 로그인하세요.

Zendesk 제공