Commit 386953e3 authored by Christos's avatar Christos
Browse files

Merge branch 'fix' into 'master'

get schema

See merge request wax/wax-prosemirror!204
parents db253fce a9e60e39
......@@ -31,10 +31,9 @@ const serializer = schema => {
};
};
let schema;
const createApplication = props => {
const application = Application.create(props);
schema = application.getSchema();
application.getSchema();
application.bootServices();
return application;
};
......@@ -69,7 +68,7 @@ const Wax = props => {
if (!application) return null;
const WaxOnchange = onChange ? onChange : value => true;
const { schema } = application.schema;
const editorContent = value || '';
finalPlugins = defaultPlugins.concat([
......
Markdown is supported
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