A theme component that allows for easily building and editing of markdown tables in Discourse.
Go to file
Keegan George 9bfc23c599 WIP: New approach (see description)
- Add edit table button (beside expand table button)
- Parse the table contents
- Display the table as a spreadsheet using the Importabular library
2022-07-12 15:27:03 -07:00
.github DEV: Move linting/tests to `/workflows` folder 2022-07-04 18:05:47 -07:00
assets WIP: New approach (see description) 2022-07-12 15:27:03 -07:00
common WIP: New approach (see description) 2022-07-12 15:27:03 -07:00
javascripts/discourse WIP: New approach (see description) 2022-07-12 15:27:03 -07:00
locales WIP: New approach (see description) 2022-07-12 15:27:03 -07:00
mobile INIT: Add base theme component files 2022-07-03 20:47:08 -07:00
test/acceptance DEV: Add acceptance tests 2022-07-04 18:03:43 -07:00
.eslintrc INIT: Add base theme component files 2022-07-03 20:47:08 -07:00
.gitignore INIT: Add base theme component files 2022-07-03 20:47:08 -07:00
.prettierrc INIT: Add base theme component files 2022-07-03 20:47:08 -07:00
.template-lintrc.js INIT: Add base theme component files 2022-07-03 20:47:08 -07:00
COPYRIGHT.txt INIT: Add base theme component files 2022-07-03 20:47:08 -07:00
LICENSE.txt INIT: Add base theme component files 2022-07-03 20:47:08 -07:00
README.md WIP: New approach (see description) 2022-07-12 15:27:03 -07:00
about.json WIP: New approach (see description) 2022-07-12 15:27:03 -07:00
package.json INIT: Add base theme component files 2022-07-03 20:47:08 -07:00
settings.yml WIP: New approach (see description) 2022-07-12 15:27:03 -07:00
yarn.lock INIT: Add base theme component files 2022-07-03 20:47:08 -07:00

README.md

Discourse Table Builder

cover

A theme component that adds a button to the composer tools to easily build tables in markdown.

To Do List

  • Add table builder functionality
  • Possibly add the ability to edit tables
  • Add front-end tests

Edit Table Functionality (WIP)

Known Issues:

  • Clicking expand table button showing empty modal
  • After viewing an edit table modal once, a reload is required for it to work again or with another table, otherwise the following error appears:
 You need to pass a node argument to Importabular, like this : new Importabular({node: document.body})

This is possibly due to not having a unique id? Perhaps moving functionality to a component will resolve this.