diff --git a/editors/demo/src/Editors.js b/editors/demo/src/Editors.js index 977ed5cc4dbf7c694157ede01a713d4b2f5b983e..fa52e35509b57dc1e5f1d06514566f8cc480bbe7 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 4e1dcb62097ef8042d759c4ae38f851102c18e5c..c8afcc4362623b7df6834b3fca77528ece6d21c7 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);