diff options
| author | bob <bcz@cs.brown.edu> | 2020-01-07 15:18:54 -0500 |
|---|---|---|
| committer | bob <bcz@cs.brown.edu> | 2020-01-07 15:18:54 -0500 |
| commit | 8ab1e09906399232aa9bc7017b3195f4cd0ff746 (patch) | |
| tree | 1ce6c44efb6a5cc1c69c80d1e6579d8b21123213 /src/client/views/DocumentButtonBar.tsx | |
| parent | ccd39c9a53ebf9aea84fcdcba6050145add4526f (diff) | |
fixed up text toolbar a little. fixed doculink anchors on hyperlinks
Diffstat (limited to 'src/client/views/DocumentButtonBar.tsx')
| -rw-r--r-- | src/client/views/DocumentButtonBar.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/DocumentButtonBar.tsx b/src/client/views/DocumentButtonBar.tsx index 0ef842275..202bfe400 100644 --- a/src/client/views/DocumentButtonBar.tsx +++ b/src/client/views/DocumentButtonBar.tsx @@ -119,7 +119,7 @@ export class DocumentButtonBar extends React.Component<{ views: (DocumentView | const anchor2Title = linkDoc.anchor2 instanceof Doc ? StrCast(linkDoc.anchor2.title) : "-untitled-"; if (linkDoc.anchor2 instanceof Doc) { - const text = FormattedTextBox.ToolTipTextMenu.makeLink(linkDoc[Id], anchor2Title, e.ctrlKey ? "onRight" : "inTab", linkDoc.anchor2[Id]); + const text = FormattedTextBox.ToolTipTextMenu.MakeLinkToSelection(linkDoc[Id], anchor2Title, e.ctrlKey ? "onRight" : "inTab", linkDoc.anchor2[Id]); proto.title = text === "" ? proto.title : text + " to " + linkDoc.anchor2.title; // TODO open to more descriptive descriptions of following in text link } } |
