Skip to content
Snippets Groups Projects
Commit 482efbcc authored by chris's avatar chris
Browse files

get new plugins

parent 0e4ce3f3
No related branches found
No related tags found
No related merge requests found
Pipeline #60994 passed with stages
in 5 minutes and 12 seconds
......@@ -54,7 +54,6 @@ const WaxView = forwardRef((props, ref) => {
const [mounted, setMounted] = useState(false);
context.app.setContext({ ...context, createPortal });
const schema = context.app.getSchema();
const waxPlugins = context.app.getPlugins();
const setEditorRef = useCallback(
node => {
......@@ -135,13 +134,13 @@ const WaxView = forwardRef((props, ref) => {
finalPlugins = defaultPlugins.concat([
createPlaceholder(placeholder),
...waxPlugins,
...context.app.getPlugins(),
]);
const reconfigureOptions = {
// doc: parse(value),
schema,
plugins: finalPlugins,
plugins: context.app.getPlugins(),
};
context.pmViews.main.updateState(EditorState.create(reconfigureOptions));
......
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