diff options
| author | bobzel <zzzman@gmail.com> | 2024-03-08 16:17:02 -0500 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2024-03-08 16:17:02 -0500 |
| commit | 7164179264d057986bfd5f303c61248f1c189406 (patch) | |
| tree | 430922a58162dcf44f48dd8031e07ebebfb943bf /src/client/views/nodes/formattedText/FormattedTextBox.tsx | |
| parent | b938ac2909290bd5dd11eeb0a0056f4679dbb25e (diff) | |
cleaned up MakeTemplate api and currentUserUtils templates for clicks etc.
Diffstat (limited to 'src/client/views/nodes/formattedText/FormattedTextBox.tsx')
| -rw-r--r-- | src/client/views/nodes/formattedText/FormattedTextBox.tsx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/client/views/nodes/formattedText/FormattedTextBox.tsx b/src/client/views/nodes/formattedText/FormattedTextBox.tsx index 4a1a51558..54e3e7b44 100644 --- a/src/client/views/nodes/formattedText/FormattedTextBox.tsx +++ b/src/client/views/nodes/formattedText/FormattedTextBox.tsx @@ -940,9 +940,7 @@ export class FormattedTextBox extends ViewBoxAnnotatableComponent<FieldViewProps description: 'Make Default Layout', event: () => { if (!this.layoutDoc.isTemplateDoc) { - const title = StrCast(this.Document.title); - this.Document.title = 'text'; - MakeTemplate(this.Document, true, title); + MakeTemplate(this.Document); } Doc.UserDoc().defaultTextLayout = new PrefetchProxy(this.Document); Doc.AddDocToList(Cast(Doc.UserDoc().template_notes, Doc, null), 'data', this.Document); |
