Allow inline-editing of merge fields in Templates

Thanks Zach, this could have real potential. I knocked up a prototype quickly:

My email composer is in a popup spawned from a row action on a table of contacts. The merging works just fine (I’m just doing the contact’s name for now) and the textarea appears editable. But when I click in the textarea I get a weird popup:

Is there something I’ve got wrong? Here’s the XML for my popup:

<popup width="900" title="">   <components>
      <pagetitle model="ClientPeople">
         <maintitle>&amp;lt;span style="font-size: 18px; color: #3cb2e1; margin-bottom: 24px;"&amp;gt;Compose Email&amp;lt;/span&amp;gt;</maintitle>
         <actions>
            <action type="savecancel" window="self"/>
         </actions>
         <conditions>
            <condition type="contextrow" field="Id" autocreated="true"/>
         </conditions>
      </pagetitle>
      <basicfieldeditor showheader="true" showsavecancel="false" mode="edit" model="ClientPeople">
         <conditions>
            <condition type="contextrow" field="Id" autocreated="true"/>
         </conditions>
         <columns>
            <column width="100%">
               <sections>
                  <section title="">
                     <fields>
                        <field xmlns="<a href="http://www.w3.org/1999/xhtml&quot;" title="Link: http://www.w3.org/1999/xhtml&quot;">http://www.w3.org/1999/xhtml"</a>; id="pfdev1__From_Person__c">
                           <label>To</label>
                        </field>
                        <field type="COMBO" allowhtml="true">
                           <label>Subject</label>
                           <template>&amp;lt;textarea id="EmailSubject"&amp;gt;Your contract&amp;lt;/textarea&amp;gt;</template>
                        </field>
                        <field type="COMBO" allowhtml="true">
                           <label>Body</label>
                           <template>&amp;lt;textarea id="EmailBody"&amp;gt;Hi {{{pfdev1__From_Person__r.Name}}},
Wanted to let you know that your contract with us is due on . Please get in touch.&amp;lt;/textarea&amp;gt;</template>
                        </field>
                     </fields>
                  </section>
               </sections>
            </column>
         </columns>
      </basicfieldeditor>
   </components>
</popup>