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

dissalow images

parent 9bc97ae7
No related branches found
No related tags found
1 merge request!307Answer nodeview
......@@ -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.
......
......@@ -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;
......
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