diff --git a/wax-questions-service/README.md b/wax-questions-service/README.md index b00db39ffb248ee80e0f8ed3f35533bd7338eff9..8b3fe9eda770a5af24776e19e88ba5daa2253a9a 100644 --- a/wax-questions-service/README.md +++ b/wax-questions-service/README.md @@ -20,6 +20,13 @@ import { QuestionsService } from 'wax-questions-service'; ``` +### Styles(preferably in your layout) + +``` +import 'wax-questions-service/dist/index.css' +``` + + ### Tools ``` diff --git a/wax-table-service/README.md b/wax-table-service/README.md index b8d971e91fb0d7bf6970c3267f60dd6e2baefe9e..441720645f3223e9b3e4d786e75ea5e8dded0930 100644 --- a/wax-table-service/README.md +++ b/wax-table-service/README.md @@ -1 +1,53 @@ -## Wax table package +## Wax Table package + +Wax Table Package is a fork of [prosemirror-tables](https://github.com/ProseMirror/prosemirror-tables) with added Table Caption +funcionality + +## How to use + +### Editor's config + +``` +import { TablesService, tableEditing, columnResizing } from 'wax-table-service'; +``` + +### Styles(preferably in your layout) + +``` +import 'wax-table-service/dist/index.css' +``` + + +### Tools + +``` +MenuService: [ + { + templateArea: 'mainMenuToolBar', + toolGroups: [ + 'Tables', + ], + }, + ], + +``` + +### ProseMirror Plugins + +In case you need tableEditing or columnResizing plugins add the to the array of `PmPlugins` in your editor's config +``` + PmPlugins: [ + tableEditing(), + columnResizing(), + ], +``` + +### Start the Service + +``` + services: [ + new TablesService(), + ] +``` + +