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>&lt;span style="font-size: 18px; color: #3cb2e1; margin-bottom: 24px;"&gt;Compose Email&lt;/span&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"" title="Link: http://www.w3.org/1999/xhtml"">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>&lt;textarea id="EmailSubject"&gt;Your contract&lt;/textarea&gt;</template>
</field>
<field type="COMBO" allowhtml="true">
<label>Body</label>
<template>&lt;textarea id="EmailBody"&gt;Hi {{{pfdev1__From_Person__r.Name}}},
Wanted to let you know that your contract with us is due on . Please get in touch.&lt;/textarea&gt;</template>
</field>
</fields>
</section>
</sections>
</column>
</columns>
</basicfieldeditor>
</components>
</popup>