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

fix cant undo matching

parent 330fe823
No related branches found
No related tags found
1 merge request!430Hhmi issues
......@@ -167,7 +167,7 @@ const Hhmi = () => {
ref={editorRef}
customValues={{ showFeedBack: submitted, testMode }}
fileUpload={file => renderImage(file)}
value={content}
// value={content}
readonly={readOnly}
layout={HhmiLayout}
// onChange={source => console.log(source)}
......
......@@ -22,6 +22,13 @@ export default class MatchingContainerNodeView extends QuestionsNodeView {
return 'matching_container';
}
update(node) {
if (node.type.name === 'paragraph') {
if (!node.sameMarkup(this.node)) return false;
}
return super.update(node);
}
stopEvent(event) {
if (event.target.type === 'text') {
return true;
......
......@@ -16,7 +16,7 @@ class MatchingQuestion extends Tools {
return main => {
const { dispatch } = main;
const { state } = main;
helpers.checkifEmpty(main);
// helpers.checkifEmpty(main);
/* Create Wrapping */
const { $from, $to } = main.state.selection;
const range = $from.blockRange($to);
......
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