How to add class to table element in ckeditor5 config?

Viewed 206

I am editing ckeditor5 config, and I need to add custom class to table. What I tried:

ckeditorConfigRegistry.add(config => ({
  toolbar: [...config.toolbar, 'fontColor', 'fontBackgroundColor'],
  table: {
    customClass: ["table", "table-bordered"]
  }
}));

also tried:

table: {
    class: "table table-bordered"
  }

and:

table: {
    attributes: {
      class: "table table-bordered"
  }
}

Any ideas how to add class to table element in config?

0 Answers
Related