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

fix image being outside of question node

parent 103df6a7
No related branches found
No related tags found
1 merge request!413Image alt text
Showing
with 9 additions and 8 deletions
......@@ -42,7 +42,7 @@ const ImageUpload = ({ item, fileUpload, view }) => {
new TextSelection(
main.state.tr.doc.resolve(
nodeFound.pos +
2 +
1 +
context.pmViews[activeViewId].state.selection.to,
),
),
......
......@@ -4,7 +4,7 @@ const questionSingleNode = {
class: { default: 'multiple-choice-question-single' },
},
group: 'block questions',
content: 'paragraph* bulletlist* orderedlist*',
content: 'block+',
defining: true,
// atom: true,
......
......@@ -4,7 +4,8 @@ const questionTrueFalseNode = {
class: { default: 'true-false-question' },
},
group: 'block questions',
content: 'paragraph* bulletlist* orderedlist*',
// content: 'paragraph* bulletlist* orderedlist*',
content: 'block+',
defining: true,
// atom: true,
......
......@@ -4,7 +4,7 @@ const questionTrueFalseNode = {
class: { default: 'true-false-question-single' },
},
group: 'block questions',
content: 'paragraph* bulletlist* orderedlist*',
content: 'block+',
defining: true,
// atom: true,
......
......@@ -155,7 +155,7 @@ const QuestionEditorComponent = ({ node, view, getPos }) => {
new TextSelection(
main.state.tr.doc.resolve(
getPos() +
2 +
1 +
context.pmViews[questionId].state.selection.to,
),
),
......
......@@ -5,7 +5,7 @@ const multipleChoiceContainerNode = {
},
group: 'block questions',
atom: true,
content: 'block*',
content: 'block+',
parseDOM: [
{
tag: 'div.multiple-choice',
......
......@@ -7,7 +7,7 @@ const multipleChoiceNode = {
feedback: { default: '' },
},
group: 'block questions',
content: 'block*',
content: 'block+',
defining: true,
parseDOM: [
{
......
......@@ -4,7 +4,7 @@ const questionNode = {
id: { default: '' },
},
group: 'block questions',
content: 'paragraph* bulletlist* orderedlist*',
content: 'block+',
defining: true,
parseDOM: [
......
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