Table Builder

Interesting… I believe this is because spreadsheet formulas can be entered using =, though formulas are not supported in the theme component. I will look into this.

The theme component uses the pluginAPI to add the button to the cog wheel menu (see code).

You could similarly use the api to add it directly to the toolbar like so:

  api.onToolbarCreate((toolbar) => {
    toolbar.addButton({
      id: "table-builder",
      group: "extras",
      icon: "table",
      action: "showTableBuilder",
      title: themePrefix("discourse_table_builder.composer.button"),
    });
  });

What do you mean by this? The spreadsheet editor functionality is being used already. It is shown in the modal when you create/edit tables.

3 Likes