diff options
| author | bobzel <zzzman@gmail.com> | 2021-03-02 12:39:58 -0500 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2021-03-02 12:39:58 -0500 |
| commit | faf9dc5ca6a7380f3b040dc2ddbe07c29689e014 (patch) | |
| tree | d76e7668597a72f496e7ea3ed4f1a14125c6c9ef /src/client/views/nodes/formattedText/nodes_rts.ts | |
| parent | c41696a3169dc765512d64972ba4503cea8393e0 (diff) | |
some cleanup and extensions to Equationbox stuff. can sort of be nested in text docs with ctrl-m.
Diffstat (limited to 'src/client/views/nodes/formattedText/nodes_rts.ts')
| -rw-r--r-- | src/client/views/nodes/formattedText/nodes_rts.ts | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/client/views/nodes/formattedText/nodes_rts.ts b/src/client/views/nodes/formattedText/nodes_rts.ts index 5d9c8b56d..3bd41fa7d 100644 --- a/src/client/views/nodes/formattedText/nodes_rts.ts +++ b/src/client/views/nodes/formattedText/nodes_rts.ts @@ -242,6 +242,19 @@ export const nodes: { [index: string]: NodeSpec } = { } }, + equation: { + inline: true, + attrs: { + fieldKey: { default: "" }, + }, + group: "inline", + draggable: false, + toDOM(node) { + const attrs = { style: `width: ${node.attrs.width}, height: ${node.attrs.height}` }; + return ["div", { ...node.attrs, ...attrs }]; + } + }, + video: { inline: true, attrs: { |
