From e02715b188a8fbaf47b5aef9e1bc892bf57627a6 Mon Sep 17 00:00:00 2001
From: bobzel <zzzman@gmail.com>
Date: Sun, 13 Sep 2020 23:15:20 -0400
Subject: got rid of textTemplates which were superfluous.  fixed problems with
 stored Marks on templates when creating one by typing and the template is the
 default layout.

---
 src/client/views/nodes/formattedText/RichTextSchema.tsx | 11 -----------
 1 file changed, 11 deletions(-)

(limited to 'src/client/views/nodes/formattedText/RichTextSchema.tsx')

diff --git a/src/client/views/nodes/formattedText/RichTextSchema.tsx b/src/client/views/nodes/formattedText/RichTextSchema.tsx
index a80d2639d..962085f0d 100644
--- a/src/client/views/nodes/formattedText/RichTextSchema.tsx
+++ b/src/client/views/nodes/formattedText/RichTextSchema.tsx
@@ -177,17 +177,6 @@ export class DashDocView {
 
             this._renderDisposer?.();
             this._renderDisposer = reaction(() => {
-                // if (!Doc.AreProtosEqual(finalLayout, dashDoc)) {
-                //     finalLayout.rootDocument = dashDoc.aliasOf; // bcz: check on this ... why is it here?
-                // }
-                const layoutKey = StrCast(finalLayout.layoutKey);
-                const finalKey = layoutKey && StrCast(finalLayout[layoutKey]).split("'")?.[1];
-                if (finalLayout !== dashDoc && finalKey) {
-                    const finalLayoutField = finalLayout[finalKey];
-                    if (finalLayoutField instanceof ObjectField) {
-                        finalLayout[finalKey + "-textTemplate"] = ComputedField.MakeFunction(`copyField(this.${finalKey})`, { this: Doc.name });
-                    }
-                }
                 return { finalLayout, resolvedDataDoc: Cast(finalLayout.resolvedDataDoc, Doc, null) };
             },
                 (res) => doReactRender(res.finalLayout, res.resolvedDataDoc),
-- 
cgit v1.2.3-70-g09d2

