From 50d8ef91dc4f936eee0d4e01c87bcd8bc207b76b Mon Sep 17 00:00:00 2001 From: chris <kokosias@yahoo.gr> Date: Fri, 30 Jul 2021 00:24:14 +0300 Subject: [PATCH] fixes --- editors/demo/src/Editors.js | 2 +- .../components/EditorComponent.js | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/editors/demo/src/Editors.js b/editors/demo/src/Editors.js index 977ed5cc4..fa52e3550 100644 --- a/editors/demo/src/Editors.js +++ b/editors/demo/src/Editors.js @@ -54,7 +54,7 @@ const Editors = () => { case 'ncbi': break; default: - return <HHMI />; + return <Editoria />; } }; diff --git a/editors/demo/src/HHMI/MultipleChoiceQuestionService/components/EditorComponent.js b/editors/demo/src/HHMI/MultipleChoiceQuestionService/components/EditorComponent.js index 4e1dcb620..c8afcc436 100644 --- a/editors/demo/src/HHMI/MultipleChoiceQuestionService/components/EditorComponent.js +++ b/editors/demo/src/HHMI/MultipleChoiceQuestionService/components/EditorComponent.js @@ -9,7 +9,6 @@ import { baseKeymap } from 'prosemirror-commands'; import { undo, redo } from 'prosemirror-history'; import { WaxContext } from 'wax-prosemirror-core'; import Placeholder from '../plugins/placeholder'; -import EmptyParagraphPlugin from '../plugins/EmptyParagraphPlugin'; const EditorWrapper = styled.div` border: none; @@ -78,7 +77,6 @@ const EditorComponent = ({ node, view, getPos }) => { }; finalPlugins = finalPlugins.concat([ - EmptyParagraphPlugin(), createPlaceholder('Type your answer'), ...plugins, ]); @@ -144,7 +142,6 @@ const EditorComponent = ({ node, view, getPos }) => { }, []); const dispatchTransaction = tr => { - console.log('hohoho'); let { state, transactions } = questionView.state.applyTransaction(tr); questionView.updateState(state); context.updateView({}, questionId); -- GitLab