diff options
author | bob <bcz@cs.brown.edu> | 2020-02-12 14:53:24 -0500 |
---|---|---|
committer | bob <bcz@cs.brown.edu> | 2020-02-12 14:53:24 -0500 |
commit | 96e78c3fc0975a2e21c356f01fdaad631a04ff82 (patch) | |
tree | 76926b779b4be41951b7cf28064a982c7e1366c6 | |
parent | 1ae7bb0792c233d8379e1949f965c864667cf3ae (diff) |
fixed summary stuff
-rw-r--r-- | src/client/util/RichTextSchema.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/util/RichTextSchema.tsx b/src/client/util/RichTextSchema.tsx index 3cf0561dc..80bd75771 100644 --- a/src/client/util/RichTextSchema.tsx +++ b/src/client/util/RichTextSchema.tsx @@ -1136,7 +1136,7 @@ const fromJson = schema.nodeFromJSON; schema.nodeFromJSON = (json: any) => { const node = fromJson(json); - if (json.type === schema.marks.summarize.name) { + if (json.type === schema.nodes.summary.name) { node.attrs.text = Slice.fromJSON(schema, node.attrs.textslice); } return node; |