From a9e60e39179d8cdd4e5ad3aea2ee2d8fc8c7cf05 Mon Sep 17 00:00:00 2001 From: chris <kokosias@yahoo.gr> Date: Wed, 4 Nov 2020 20:21:24 +0200 Subject: [PATCH] get schema --- wax-prosemirror-core/src/Wax.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/wax-prosemirror-core/src/Wax.js b/wax-prosemirror-core/src/Wax.js index ba15b947c..d5b604c5b 100644 --- a/wax-prosemirror-core/src/Wax.js +++ b/wax-prosemirror-core/src/Wax.js @@ -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([ -- GitLab