Skip to content
Snippets Groups Projects
Commit 94ec7b8d authored by chris's avatar chris
Browse files

cleanup

parent 1e2e9757
No related branches found
No related tags found
1 merge request!356Question in nodeview
......@@ -27,6 +27,7 @@ export default class MultipleChoiceNodeView extends AbstractNodeView {
this.node = node;
if (this.context.view[node.attrs.id]) {
const { state } = this.context.view[node.attrs.id];
console.log(state);
const start = node.content.findDiffStart(state.doc.content);
if (start != null) {
let { a: endA, b: endB } = node.content.findDiffEnd(state.doc.content);
......
......@@ -2,16 +2,7 @@ import { v4 as uuidv4 } from 'uuid';
import { TextSelection } from 'prosemirror-state';
import { Commands } from 'wax-prosemirror-utilities';
import { Fragment } from 'prosemirror-model';
import { wrapIn } from 'prosemirror-commands';
import {
joinPoint,
canJoin,
findWrapping,
liftTarget,
canSplit,
ReplaceAroundStep,
} from 'prosemirror-transform';
import { Selection } from 'prosemirror-state';
import { findWrapping } from 'prosemirror-transform';
const createEmptyParagraph = (context, newAnswerId) => {
if (context.view[newAnswerId]) {
......
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