table icon indicating copy to clipboard operation
table copied to clipboard

fix(plugins.js) : makes the config parameter 'withHeadings' works when data is empty

Open loic-bellinger opened this issue 2 years ago • 0 comments

Noticed that the config parameter withHeadings was not properly working.

More precisely:

table: {
  class: Table,
  inlineToolbar: true,
  config: {
    withHeadings: true
  }
}

was not creating an empty table with headings.

So I made a fix. Tried to change as little code as possible (but I believe getConfig should be optimized further)

This PR https://github.com/editor-js/table/pull/126 also tackles the issue

loic-bellinger avatar Sep 20 '23 16:09 loic-bellinger