Automatically adding a class to tables in Atto editor

Automatically adding a class to tables in Atto editor

by Alex Mellor -
Number of replies: 0

Hi,

I'm using Boost on 3.4.2 and with Bootstrap you need to add a "table" class to tables to get the default styling.

Is there any way to parse the HTML in Atto to look for table elements that users add and then add a table class automatically?

I know I can just add the "table" element to the .table styling in the CSS but Bootstrap hasn't done this for a reason, so wanted to adhere to it if possible.



Average of ratings: -