diff options
| author | anika-ahluwalia <anika.ahluwalia@gmail.com> | 2020-07-09 12:15:42 -0500 |
|---|---|---|
| committer | anika-ahluwalia <anika.ahluwalia@gmail.com> | 2020-07-09 12:15:42 -0500 |
| commit | 27b0f32460245539d77bcd435627a68364e0bc0d (patch) | |
| tree | f30d6e4a83625f618e9ada7c01ddfc60c84662d7 /src/client/views/nodes/formattedText/FormattedTextBox.tsx | |
| parent | 15f70932a9e267393c774e9c4dd37a43224320f0 (diff) | |
fixed linking undo issues
Diffstat (limited to 'src/client/views/nodes/formattedText/FormattedTextBox.tsx')
| -rw-r--r-- | src/client/views/nodes/formattedText/FormattedTextBox.tsx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/client/views/nodes/formattedText/FormattedTextBox.tsx b/src/client/views/nodes/formattedText/FormattedTextBox.tsx index fc63dfbf5..30e0738bf 100644 --- a/src/client/views/nodes/formattedText/FormattedTextBox.tsx +++ b/src/client/views/nodes/formattedText/FormattedTextBox.tsx @@ -944,6 +944,8 @@ export class FormattedTextBox extends ViewBoxAnnotatableComponent<(FieldViewProp frag.forEach(node => nodes.push(marker(node))); return Fragment.fromArray(nodes); } + + function addLinkMark(node: Node, title: string, linkId: string) { if (!node.isText) { const content = addMarkToFrag(node.content, (node: Node) => addLinkMark(node, title, linkId)); |
