Skip to content
Snippets Groups Projects
Commit 6d5f1d4f authored by chris's avatar chris
Browse files

fix

parent 0819b1cc
No related branches found
No related tags found
No related merge requests found
...@@ -38,8 +38,8 @@ export default (view, fileUpload, placeholderPlugin, context) => file => { ...@@ -38,8 +38,8 @@ export default (view, fileUpload, placeholderPlugin, context) => file => {
} }
// Otherwise, insert it at the placeholder's position, and remove // Otherwise, insert it at the placeholder's position, and remove
// the placeholder // the placeholder
context.pmViews.main.dispatch( context.pmViews[context.activeViewId].dispatch(
context.pmViews.main.state.tr context.pmViews[context.activeViewId].state.tr
.replaceWith( .replaceWith(
pos, pos,
pos, pos,
......
/* eslint-disable no-param-reassign */
import { Plugin, PluginKey } from 'prosemirror-state'; import { Plugin, PluginKey } from 'prosemirror-state';
import { Decoration, DecorationSet } from 'prosemirror-view'; import { Decoration, DecorationSet } from 'prosemirror-view';
......
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