diff options
author | andrewdkim <adkim414@gmail.com> | 2019-06-20 11:09:03 -0400 |
---|---|---|
committer | andrewdkim <adkim414@gmail.com> | 2019-06-20 11:09:03 -0400 |
commit | b856d4c0be0b08bf154d552226457b82d31cf81c (patch) | |
tree | fbcf2ac0ebe6ea358bada7efb5689f92bf3d2bc9 /src/client/util/RichTextSchema.tsx | |
parent | da2157616ca4e614dacbf26fb5fa6758b51a209e (diff) | |
parent | a5478b2d4cc3b66c6b58471cbb05c623d0109724 (diff) |
merge with master
Diffstat (limited to 'src/client/util/RichTextSchema.tsx')
-rw-r--r-- | src/client/util/RichTextSchema.tsx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/client/util/RichTextSchema.tsx b/src/client/util/RichTextSchema.tsx index e1e595925..943cdb4d1 100644 --- a/src/client/util/RichTextSchema.tsx +++ b/src/client/util/RichTextSchema.tsx @@ -156,12 +156,12 @@ export const nodes: { [index: string]: NodeSpec } = { title: dom.getAttribute("title"), alt: dom.getAttribute("alt"), width: Math.min(100, Number(dom.getAttribute("width"))), - } + }; } }], toDOM(node) { - const attrs = { style: `width: ${node.attrs.width}` } - return ["video", { ...node.attrs, ...attrs }] + const attrs = { style: `width: ${node.attrs.width}` }; + return ["video", { ...node.attrs, ...attrs }]; } }, @@ -285,7 +285,7 @@ export const marks: { [index: string]: MarkSpec } = { toDOM() { return ['span', { style: 'color: blue' - }] + }]; } }, @@ -536,4 +536,4 @@ schema.nodeFromJSON = (json: any) => { node.attrs.oldtext = Slice.fromJSON(schema, node.attrs.oldtextslice); } return node; -}
\ No newline at end of file +};
\ No newline at end of file |