1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-31 10:51:44 +02:00

Pass options to fromJSON from Value.create (#1787)

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

View File

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