Update Allowed HTML Styles

Alation Cloud Service Applies to Alation Cloud Service instances of Alation

Customer Managed Applies to customer-managed instances of Alation

Note

Alation Cloud Service customers can request server configuration changes through Alation Support.

Rich Text Fields on Alation catalog pages support a limited number of HTML styles. The New User Experience includes an expanded list of styles. The full list of supported styles is contained in the alation_conf parameter alation.catalog.rich_text.allowed_html.styles. If you need to update your list of HTML styles, do the following:

  1. Use SSH to connect to the Alation server.

  2. Enter the Alation shell using the following command:

    sudo /etc/init.d/alation shell
    
  3. Using alation_conf, query for the current set of allowed HTML styles:

    alation_conf alation.catalog.rich_text.allowed_html.styles
    

    You should see output similar to the following:

    alation.catalog.rich_text.allowed_html.styles = ['width', 'height', 'list-style-type', 'margin', 'margin-left', 'margin-right', 'margin-top', 'margin-bottom', 'border', 'border-color', 'border-width', 'border-style', 'overflow', 'vertical-align', 'visibility']
    
  4. Copy the list and add or remove items as desired; for full functionality of the New User Experience, include the following styles: 'color', 'text-align', 'font-size', 'background-color', 'margin-left'.

  5. Call alation_conf again to reset the allowed HTML styles. The full list must be enclosed in double quotes (”) when passing to alation_conf:

    alation_conf alation.catalog.rich_text.allowed_html.styles -s "['background-color', 'color', 'font-size', 'width', 'height', 'list-style-type', 'margin', 'margin-left', 'margin-right', 'margin-top', 'margin-bottom', 'border', 'border-color', 'border-width', 'border-style', 'overflow', 'vertical-align', 'visibility']"
    
  6. Restart the Alation user interface:

    alation_supervisor restart web:uwsgi
    
  7. Exit the shell: exit