mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-03-06 05:49:47 +01: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:
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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user