diff options
| author | bobzel <zzzman@gmail.com> | 2024-04-02 16:20:49 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2024-04-02 16:20:49 -0400 |
| commit | 3d158bb9b941a3fcb1b486f354ca5c9195dd21c2 (patch) | |
| tree | 0fc9b1217fd639f672fccf2bd3290c161fb04a82 /src/client/views/nodes/formattedText/nodes_rts.ts | |
| parent | ac58c8da5dc8ee5346bccd6da1f6883a7ce0d3d7 (diff) | |
updated h1,etc css. updated package versions.
Diffstat (limited to 'src/client/views/nodes/formattedText/nodes_rts.ts')
| -rw-r--r-- | src/client/views/nodes/formattedText/nodes_rts.ts | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/client/views/nodes/formattedText/nodes_rts.ts b/src/client/views/nodes/formattedText/nodes_rts.ts index ceafc3ba1..62b8b03d6 100644 --- a/src/client/views/nodes/formattedText/nodes_rts.ts +++ b/src/client/views/nodes/formattedText/nodes_rts.ts @@ -121,7 +121,6 @@ export const nodes: { [index: string]: NodeSpec } = { ...ParagraphNodeSpec.attrs, level: { default: 1 }, }, - defining: true, parseDOM: [ { tag: 'h1', attrs: { level: 1 } }, { tag: 'h2', attrs: { level: 2 } }, @@ -132,8 +131,7 @@ export const nodes: { [index: string]: NodeSpec } = { ], toDOM(node) { const dom = toParagraphDOM(node) as any; - const level = node.attrs.level || 1; - dom[0] = 'h' + level; + dom[0] = `h${node.attrs.level || 1}`; return dom; }, getAttrs(dom: any) { |
