diff --git a/editors/demo/src/HHMI/MultipleChoiceQuestionService/components/EditorComponent.js b/editors/demo/src/HHMI/MultipleChoiceQuestionService/components/EditorComponent.js index 0cd32b264155f130a9acb8c5ccb232b569eac94e..ce3a4f1e3c600fb5b5d702323ab3f5e7c6041804 100644 --- a/editors/demo/src/HHMI/MultipleChoiceQuestionService/components/EditorComponent.js +++ b/editors/demo/src/HHMI/MultipleChoiceQuestionService/components/EditorComponent.js @@ -102,10 +102,9 @@ const EditorComponent = ({ node, view, getPos }) => { }), // This is the magic part dispatchTransaction, - disallowedTools: [], + disallowedTools: ['images'], handleDOMEvents: { mousedown: () => { - context.updateView({}, questionId); context.view[activeViewId].dispatch( context.view[activeViewId].state.tr.setSelection( TextSelection.between( @@ -114,6 +113,7 @@ const EditorComponent = ({ node, view, getPos }) => { ), ), ); + context.updateView({}, questionId); // Kludge to prevent issues due to the fact that the whole // footnote is node-selected (and thus DOM-selected) when // the parent editor is focused. diff --git a/editors/demo/src/HHMI/layout/EditorElements.js b/editors/demo/src/HHMI/layout/EditorElements.js index a75f747aeec4251939b215fff0d97a91629083fa..f3f4a0734f50b6f0e3101f855e67d02f6eddc7e8 100644 --- a/editors/demo/src/HHMI/layout/EditorElements.js +++ b/editors/demo/src/HHMI/layout/EditorElements.js @@ -96,8 +96,8 @@ export default css` } } - .question { - border: 1px solid green; + .mutiple-choice { + border: 3px solid #f5f5f7; counter-reset: question-item-multiple; margin: 38px; padding: 20px;