diff options
| author | bobzel <zzzman@gmail.com> | 2025-04-15 13:53:42 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2025-04-15 13:53:42 -0400 |
| commit | 62c88503ba43c864f7fe981111a1f7577879916e (patch) | |
| tree | ca2699c6305e9c484a9fbce72306bbc8dbe157e4 /src/client/views/nodes/formattedText/RichTextMenu.tsx | |
| parent | d818ef151ca65008e5c6bb5e92b709decb3026d8 (diff) | |
fixing summary/elision text node to work better with lists or hierarchical text nodes.
Diffstat (limited to 'src/client/views/nodes/formattedText/RichTextMenu.tsx')
| -rw-r--r-- | src/client/views/nodes/formattedText/RichTextMenu.tsx | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/client/views/nodes/formattedText/RichTextMenu.tsx b/src/client/views/nodes/formattedText/RichTextMenu.tsx index d31a58030..c7731e812 100644 --- a/src/client/views/nodes/formattedText/RichTextMenu.tsx +++ b/src/client/views/nodes/formattedText/RichTextMenu.tsx @@ -414,17 +414,6 @@ export class RichTextMenu extends AntimodeMenu<AntimodeMenuProps> { this.view.focus(); }; - insertSummarizer(state: EditorState, dispatch: (tr: Transaction) => void) { - if (state.selection.empty) return false; - const mark = state.schema.marks.summarize.create(); - const { tr } = state; - tr.addMark(state.selection.from, state.selection.to, mark); - const content = tr.selection.content(); - const newNode = state.schema.nodes.summary.create({ visibility: false, text: content, textslice: content.toJSON() }); - dispatch?.(tr.replaceSelectionWith(newNode).removeMark(tr.selection.from - 1, tr.selection.from, mark)); - return true; - } - vcenterToggle = () => { if (this.dataDoc) this.dataDoc.text_centered = !this.dataDoc.text_centered; else Doc.UserDoc().textCentered = !Doc.UserDoc().textCentered; |
