1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-03-05 21:49:06 +01:00

Pass options to fromJSON from Value.create ()

I guess this was an omission, or the arguments were not updated since a long time
This commit is contained in:
Nicolas Gaborit 2018-04-27 22:23:15 +02:00 committed by Ian Storm Taylor
parent 4712e64c30
commit 9e50bc6b1f

@ -46,7 +46,7 @@ class Value extends Record(DEFAULTS) {
}
if (isPlainObject(attrs)) {
return Value.fromJSON(attrs)
return Value.fromJSON(attrs, options)
}
throw new Error(