Skip to content
Snippets Groups Projects
Commit 72a4872b authored by chris's avatar chris
Browse files

add console.logs

parent 066cd1b3
No related branches found
No related tags found
1 merge request!587Publish@0.9.36
......@@ -28,7 +28,7 @@ export default {
exclude: 'node_modules/**',
}),
commonjs(),
terser(),
// terser(),
],
external: [],
};
......@@ -112,6 +112,7 @@ const WaxView = forwardRef((props, ref) => {
}, []);
useEffect(() => {
console.log('in reconfigure');
// const parse = parser(schema);
if (!reconfigureState) return;
......@@ -125,6 +126,11 @@ const WaxView = forwardRef((props, ref) => {
context.app.PmPlugins.add(pluginKey, pluginValue);
}
});
console.log(
'in reconfigure down',
reconfigureState,
context.app.getPlugins(),
);
let finalPlugins = [];
......@@ -140,7 +146,7 @@ const WaxView = forwardRef((props, ref) => {
const reconfigureOptions = {
// doc: parse(value),
schema,
plugins: context.app.getPlugins(),
plugins: finalPlugins,
};
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