diff options
| author | bobzel <zzzman@gmail.com> | 2021-02-25 19:16:36 -0500 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2021-02-25 19:16:36 -0500 |
| commit | 5458cb78d165420259d1b32326724b99fd153748 (patch) | |
| tree | 3bf5126f5c2073b663e75a48c029d5148574819e /src/client/views/nodes/formattedText/FormattedTextBox.tsx | |
| parent | c1d7d04fbb8f13330c0bf540ab8382c5d4b73e2d (diff) | |
prevent annotation notes on PDFS from showing up in file system view.
Diffstat (limited to 'src/client/views/nodes/formattedText/FormattedTextBox.tsx')
| -rw-r--r-- | src/client/views/nodes/formattedText/FormattedTextBox.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/nodes/formattedText/FormattedTextBox.tsx b/src/client/views/nodes/formattedText/FormattedTextBox.tsx index b4fbda9f4..f4105f313 100644 --- a/src/client/views/nodes/formattedText/FormattedTextBox.tsx +++ b/src/client/views/nodes/formattedText/FormattedTextBox.tsx @@ -231,8 +231,8 @@ export class FormattedTextBox extends ViewBoxAnnotatableComponent<(FieldViewProp AnchorMenu.Instance.StartDrag = action(async (e: PointerEvent, ele: HTMLElement) => { e.preventDefault(); e.stopPropagation(); - const targetCreator = () => { - const target = CurrentUserUtils.GetNewTextDoc("Note linked to " + this.rootDoc.title, 0, 0, 100, 100); + const targetCreator = (annotationOn?: Doc) => { + const target = CurrentUserUtils.GetNewTextDoc("Note linked to " + this.rootDoc.title, 0, 0, 100, 100, undefined, annotationOn); FormattedTextBox.SelectOnLoad = target[Id]; return target; }; |
