Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Mohan Kumar
wax-prosemirror
Commits
63a16752
Commit
63a16752
authored
Nov 04, 2020
by
chris
Browse files
fix register schema
parent
7cede328
Changes
1
Hide whitespace changes
Inline
Side-by-side
wax-prosemirror-core/src/Wax.js
View file @
63a16752
...
...
@@ -31,9 +31,10 @@ const serializer = schema => {
};
};
let
schema
;
const
createApplication
=
props
=>
{
const
application
=
Application
.
create
(
props
);
application
.
getSchema
();
schema
=
application
.
getSchema
();
application
.
bootServices
();
return
application
;
};
...
...
@@ -67,7 +68,6 @@ const Wax = props => {
}
=
props
;
if
(
!
application
)
return
null
;
const
{
schema
}
=
application
.
schema
;
const
WaxOnchange
=
onChange
?
onChange
:
value
=>
true
;
const
editorContent
=
value
||
''
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment