diff options
author | Bob Zeleznik <zzzman@gmail.com> | 2020-06-16 23:24:30 -0400 |
---|---|---|
committer | Bob Zeleznik <zzzman@gmail.com> | 2020-06-16 23:24:30 -0400 |
commit | 3927564a9ff22af07490f0e98be3e8cbe1a4d3ab (patch) | |
tree | a2dcb28f7118136c6078b6148f54aa4a608b200b /src/client/views/nodes/formattedText/FormattedTextBox.tsx | |
parent | 4a0332994b38c8910077e6cc711e9e78c2964b67 (diff) |
changed Doc.MakeCopy() to ignore layout[ fields so that copying text documents with a layout doesn't copy their text
Diffstat (limited to 'src/client/views/nodes/formattedText/FormattedTextBox.tsx')
-rw-r--r-- | src/client/views/nodes/formattedText/FormattedTextBox.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/nodes/formattedText/FormattedTextBox.tsx b/src/client/views/nodes/formattedText/FormattedTextBox.tsx index ba36a1618..b43bd6d63 100644 --- a/src/client/views/nodes/formattedText/FormattedTextBox.tsx +++ b/src/client/views/nodes/formattedText/FormattedTextBox.tsx @@ -481,7 +481,7 @@ export class FormattedTextBox extends ViewBoxAnnotatableComponent<(FieldViewProp }), icon: "eye" }); }); - changeItems.push({ description: "FreeForm", event: undoBatch(() => DocUtils.makeCustomViewClicked(this.rootDoc, Docs.Create.FreeformDocument, "freeform"), "change view"), icon: "eye" }); + changeItems.push({ description: "FreeForm", event: () => DocUtils.makeCustomViewClicked(this.rootDoc, Docs.Create.FreeformDocument, "freeform"), icon: "eye" }); !change && cm.addItem({ description: "Change Perspective...", subitems: changeItems, icon: "external-link-alt" }); } |