Skip to content
Snippets Groups Projects
Commit 2c33eafa authored by chris's avatar chris
Browse files

fix(lists): import wrapInList from prosemirror-schema-list

parent ced50cb0
No related branches found
No related tags found
1 merge request!45Develop
import Tools from "../../lib/Tools";
import { injectable } from "inversify";
import { icons } from "wax-prosemirror-components";
import { wrapInList } from "prosemirror-commands";
import { wrapInList } from "prosemirror-schema-list";
import { blockActive } from "../../lib/Utils";
@injectable()
......@@ -11,15 +11,15 @@ export default class BulletList extends Tools {
get run() {
return (state, dispatch) => {
wrapInList(state.config.schema.nodes.bulletlist)(state, dispatch);
return wrapInList(state.config.schema.nodes.bulletlist)(state, dispatch);
};
}
// get enable() {
// return state => {
// return wrapInList(state.config.schema.nodes.bulletlist)(state);
// };
// }
get enable() {
return state => {
return wrapInList(state.config.schema.nodes.bulletlist)(state);
};
}
get active() {
return state => {
......
import Tools from "../../lib/Tools";
import { injectable } from "inversify";
import { icons } from "wax-prosemirror-components";
import { wrapInList } from "prosemirror-commands";
import { wrapInList } from "prosemirror-schema-list";
import { blockActive } from "../../lib/Utils";
@injectable()
......@@ -15,11 +15,11 @@ export default class OrderedList extends Tools {
};
}
// get enable() {
// return state => {
// return wrapInList(state.config.schema.nodes.orderedlist)(state);
// };
// }
get enable() {
return state => {
return wrapInList(state.config.schema.nodes.orderedlist)(state);
};
}
get active() {
return state => {
......
......@@ -56,10 +56,10 @@ export default class Node {
const importer = this.importer;
return {
// inline: this.inline,
// group: this.group,
// content: this.content,
// draggable: this.draggable,
inline: this.inline,
group: this.group,
content: this.content,
draggable: this.draggable,
attrs: this._attrs,
parseDOM: this._parseRules.map(rule => rule.combineRules()),
toDOM: node => {
......
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