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:
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(
|
||||
|
Reference in New Issue
Block a user