diff --git a/wax-prosemirror-plugins/src/InlineAnnotations/StrikeThroughService/StrikeThrough.js b/wax-prosemirror-plugins/src/InlineAnnotations/StrikeThroughService/StrikeThrough.js index c89a7d66fed422ce6521601decd8c45b20c84e10..ef38b0a08335971695994a353245547f8a198b29 100644 --- a/wax-prosemirror-plugins/src/InlineAnnotations/StrikeThroughService/StrikeThrough.js +++ b/wax-prosemirror-plugins/src/InlineAnnotations/StrikeThroughService/StrikeThrough.js @@ -17,8 +17,7 @@ export default class StrikeThrough extends Tools { get active() { return state => { - console.log(state.config); - // return markActive(state.config.schema.marks.strikethrough)(state); + return markActive(state.config.schema.marks.strikethrough)(state); }; } } diff --git a/wax-prosemirror-plugins/src/InlineAnnotations/StrikeThroughService/StrikeThroughService.js b/wax-prosemirror-plugins/src/InlineAnnotations/StrikeThroughService/StrikeThroughService.js index e4d8d931b4d769bee1b7366118141c360a7d85ea..8b4b291e27247fc15e2cc4ad8699ca20425fe998 100644 --- a/wax-prosemirror-plugins/src/InlineAnnotations/StrikeThroughService/StrikeThroughService.js +++ b/wax-prosemirror-plugins/src/InlineAnnotations/StrikeThroughService/StrikeThroughService.js @@ -1,7 +1,6 @@ import Service from "wax-prosemirror-core/src/services/Service"; import { strikethroughMark } from "wax-prosemirror-schema"; import StrikeThrough from "./StrikeThrough"; -console.log(strikethroughMark); class StrikeThroughService extends Service { register() { this.container.bind("StrikeThrough").to(StrikeThrough); @@ -9,7 +8,7 @@ class StrikeThroughService extends Service { this.container .bind("schema") .toConstantValue({ - em: strikethroughMark + strikethrough: strikethroughMark }) .whenTargetNamed("mark"); } diff --git a/wax-prosemirror-plugins/src/SchemaService/ParseRule.js b/wax-prosemirror-plugins/src/SchemaService/ParseRule.js index 5f757b0fe354bc4b171e4299b795ff10f683bc7f..f47be611bd3558e3406dae6987593df857e13429 100644 --- a/wax-prosemirror-plugins/src/SchemaService/ParseRule.js +++ b/wax-prosemirror-plugins/src/SchemaService/ParseRule.js @@ -31,7 +31,7 @@ export default class ParseRule { return omit(hooks, ["dom"]); }; } - console.log(rule, "rule"); + return rule; } diff --git a/wax-prosemirror-plugins/src/SchemaService/Schema.js b/wax-prosemirror-plugins/src/SchemaService/Schema.js index 390b3b5bc1ead3c9e08a19386ba86df62590673c..8360e36e6cb973713856c93eb35dcf18c120591c 100644 --- a/wax-prosemirror-plugins/src/SchemaService/Schema.js +++ b/wax-prosemirror-plugins/src/SchemaService/Schema.js @@ -12,8 +12,12 @@ export default class Schema { schema = null; constructor( - @multiInject("schema") @named("mark") marks, - @multiInject("schema") @named("node") nodes + @multiInject("schema") + @named("mark") + marks, + @multiInject("schema") + @named("node") + nodes ) { this.setNodes(nodes); this.setMarks(marks); @@ -94,10 +98,10 @@ export default class Schema { nodes[index] = this._nodes[index].toJSON(); } + console.log(this._marks); for (let index in this._marks) { marks[index] = this._marks[index].toJSON(); } - this.schema = new PmPschema({ nodes, marks }); return this.schema; }