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

fix-schema

parent 2557a378
No related branches found
No related tags found
1 merge request!374Add feedback
Showing with 10 additions and 10 deletions
......@@ -40,7 +40,7 @@ const t = `<p class="paragraph"></p>
<p class="paragraph">answer 2</p>
</div>
</div>
<div id="" class="fill-the-gap"><p class="paragraph">some text with a <span id="e88faa82-ff79-4b5a-9aa5-cb10b4236e98" class="fill-the-gap">gap</span> and </p></div>
<p class="paragraph"></p><div id="d4fa43fc-3a92-4591-a8a4-e6271e42fc02" class="fill-the-gap" feedback=""><p class="paragraph">sdsd</p></div>
`;
const Hhmi = () => {
......@@ -67,7 +67,7 @@ const Hhmi = () => {
fileUpload={file => renderImage(file)}
value={t}
readonly={readOnly}
layout={HhmiLayout}
// layout={HhmiLayout}
onChange={source => console.log(source)}
/>
</>
......
......@@ -13,7 +13,7 @@ const essayContainerNode = {
tag: 'div.essay',
getAttrs(dom) {
return {
id: dom.dataset.id,
id: dom.getAttribute('id'),
class: dom.getAttribute('class'),
};
},
......
......@@ -2,7 +2,6 @@ const fillTheGapContainerNode = {
attrs: {
id: { default: '' },
class: { default: 'fill-the-gap' },
answer: { default: false },
feedback: { default: '' },
},
group: 'block questions',
......@@ -16,9 +15,8 @@ const fillTheGapContainerNode = {
tag: 'div.fill-the-gap',
getAttrs(dom) {
return {
id: dom.dataset.id,
id: dom.getAttribute('id'),
class: dom.getAttribute('class'),
answer: JSON.parse(dom.getAttribute('answer').toLowerCase()),
feedback: dom.getAttribute('feedback'),
};
},
......
......@@ -2,6 +2,7 @@ const fillTheGapNode = {
attrs: {
id: { default: '' },
class: { default: 'fill-the-gap' },
anser: { default: '' },
},
group: 'inline',
content: 'text*',
......@@ -15,6 +16,7 @@ const fillTheGapNode = {
return {
id: dom.getAttribute('id'),
class: dom.getAttribute('class'),
answer: dom.getAttribute('answer'),
};
},
},
......
......@@ -14,7 +14,7 @@ const multipleChoiceSingleCorrectContainerNode = {
tag: 'div.multiple-choice-single-correct',
getAttrs(dom) {
return {
id: dom.dataset.id,
id: dom.getAttribute('id'),
class: dom.getAttribute('class'),
correctId: dom.getAttribute('correctId'),
};
......
......@@ -13,7 +13,7 @@ const trueFalseContainerNode = {
tag: 'div.true-false',
getAttrs(dom) {
return {
id: dom.dataset.id,
id: dom.getAttribute('id'),
class: dom.getAttribute('class'),
};
},
......
......@@ -13,7 +13,7 @@ const trueFalseSingleCorrectContainerNode = {
tag: 'div.true-false-single-correct',
getAttrs(dom) {
return {
id: dom.dataset.id,
id: dom.getAttribute('id'),
class: dom.getAttribute('class'),
};
},
......
......@@ -11,7 +11,7 @@ const multipleChoiceContainerNode = {
tag: 'div.multiple-choice',
getAttrs(dom) {
return {
id: dom.dataset.id,
id: dom.getAttribute('id'),
class: dom.getAttribute('class'),
};
},
......
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