Skip to content
Snippets Groups Projects
Commit 9c715428 authored by chris's avatar chris
Browse files

feat(tables): tables service in progress

parent b170cbd2
No related branches found
No related tags found
1 merge request!45Develop
import Service from "wax-prosemirror-core/src/services/Service";
import Table from "./Table";
class EditTableService extends Service {
boot() {}
register() {
this.container.bind("TableDropDownOptions").to(TableDropDownOptions);
}
}
export default EditTableService;
import Service from "wax-prosemirror-core/src/services/Service";
import Table from "./Table";
class InsertTableService extends Service {
boot() {}
register() {
this.container.bind("Table").to(Table);
}
}
export default InsertTableService;
import Tools from "../../../lib/Tools";
import { createTable, canInsert } from "../../../lib/Utils";
import Tools from "../../lib/Tools";
import { createTable, canInsert } from "../../lib/Utils";
import { injectable } from "inversify";
import { icons } from "wax-prosemirror-components";
......
import TablesServices from "./index";
import Service from "wax-prosemirror-core/src/services/Service";
class TablesService extends Service {
register() {
this.config.pushToArray("services", TablesServices);
}
}
export default TablesService;
......@@ -15,9 +15,7 @@ class Annotations extends ToolGroup {
@inject("Superscript") superscript,
@inject("Underline") underline,
@inject("Blockquote") blockquote,
@inject("Image") image,
@inject("Table") table,
@inject("TableDropDownOptions") tableDropDownOptions
@inject("Image") image
) {
super();
this.tools = [
......@@ -31,9 +29,7 @@ class Annotations extends ToolGroup {
superscript,
underline,
blockquote,
tableDropDownOptions,
image,
table
image
];
}
......
export { default as Blockquote } from "./Blockquote";
export { default as Table } from "./Table";
export { default as TableDropDownOptions } from "./TableDropDownOptions";
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment