Skip to content
Snippets Groups Projects
Commit 50d8ef91 authored by chris's avatar chris
Browse files

fixes

parent 549a7e4b
No related branches found
No related tags found
1 merge request!306Answer nodeview
...@@ -54,7 +54,7 @@ const Editors = () => { ...@@ -54,7 +54,7 @@ const Editors = () => {
case 'ncbi': case 'ncbi':
break; break;
default: default:
return <HHMI />; return <Editoria />;
} }
}; };
......
...@@ -9,7 +9,6 @@ import { baseKeymap } from 'prosemirror-commands'; ...@@ -9,7 +9,6 @@ import { baseKeymap } from 'prosemirror-commands';
import { undo, redo } from 'prosemirror-history'; import { undo, redo } from 'prosemirror-history';
import { WaxContext } from 'wax-prosemirror-core'; import { WaxContext } from 'wax-prosemirror-core';
import Placeholder from '../plugins/placeholder'; import Placeholder from '../plugins/placeholder';
import EmptyParagraphPlugin from '../plugins/EmptyParagraphPlugin';
const EditorWrapper = styled.div` const EditorWrapper = styled.div`
border: none; border: none;
...@@ -78,7 +77,6 @@ const EditorComponent = ({ node, view, getPos }) => { ...@@ -78,7 +77,6 @@ const EditorComponent = ({ node, view, getPos }) => {
}; };
finalPlugins = finalPlugins.concat([ finalPlugins = finalPlugins.concat([
EmptyParagraphPlugin(),
createPlaceholder('Type your answer'), createPlaceholder('Type your answer'),
...plugins, ...plugins,
]); ]);
...@@ -144,7 +142,6 @@ const EditorComponent = ({ node, view, getPos }) => { ...@@ -144,7 +142,6 @@ const EditorComponent = ({ node, view, getPos }) => {
}, []); }, []);
const dispatchTransaction = tr => { const dispatchTransaction = tr => {
console.log('hohoho');
let { state, transactions } = questionView.state.applyTransaction(tr); let { state, transactions } = questionView.state.applyTransaction(tr);
questionView.updateState(state); questionView.updateState(state);
context.updateView({}, questionId); context.updateView({}, questionId);
......
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