Use Smarty version that doesn't allow php tags.
<tr>
<th {if $contactInfo.fieldRequired.descr}class="glm-required"{/if}>Position/Responsibilities</th>
<td {if $contactInfo.fieldFail.descr}class="glm-form-bad-input"{/if}>
- {php}
- wp_editor('{$contactInfo.fieldData.descr|escape:quotes}', 'glm_descr', array(
- 'quicktags' => false,
- 'media_buttons' => false,
- 'wpautop' => false,
- 'textarea_name' => 'descr',
- 'editor_height' => 100, // Height in px, overrides editor_rows
- // 'textarea_rows' => 4,
- ));
- {/php}
+ {wp_editor(
+ $contactInfo.fieldData.descr|escape:quotes,
+ 'glm_descr',
+ json_decode('{
+ "media_buttons": false,
+ "quicktags": false,
+ "textarea_name": "descr",
+ "editor_height": 100
+ }', true)
+ )}
{if $contactInfo.fieldFail.descr}<p>{$contactInfo.fieldFail.descr}</p>{/if}
</td>
</tr>
<tr>
<th {if $contactInfo.fieldRequired.descr}class="glm-required"{/if}>Position/Responsibilities:</th>
<td {if $contactInfo.fieldFail.descr}class="glm-form-bad-input"{/if}>
- {php}
- wp_editor('{$contactInfo.fieldData.descr|escape:quotes}', 'glm_descr', array(
- 'quicktags' => false,
- 'media_buttons' => false,
- 'wpautop' => false,
- 'textarea_name' => 'descr',
- 'editor_height' => 100, // Height in px, overrides editor_rows
- // 'textarea_rows' => 4,
- ));
- {/php}
+ {wp_editor(
+ $contactInfo.fieldData.descr|escape:quotes,
+ 'glm_descr',
+ json_decode('{
+ "media_buttons": false,
+ "quicktags": false,
+ "textarea_name": "descr",
+ "editor_height": 100
+ }', true)
+ )}
{if $contactInfo.fieldFail.descr}<p>{$contactInfo.fieldFail.descr}</p>{/if}
</td>
</tr>
<tr>
<th {if $contactInfo.fieldRequired.descr}class="glm-required"{/if}>Position/Responsibilities:</th>
<td {if $contactInfo.fieldFail.descr}class="glm-form-bad-input"{/if}>
- {php}
- wp_editor('{$contactInfo.fieldData.descr|escape:quotes}', 'glm_descr', array(
- 'quicktags' => false,
- 'media_buttons' => false,
- 'wpautop' => false,
- 'textarea_name' => 'descr',
- 'editor_height' => 100, // Height in px, overrides editor_rows
- // 'textarea_rows' => 4,
- ));
- {/php}
+ {wp_editor(
+ $contactInfo.fieldData.descr|escape:quotes,
+ 'glm_descr',
+ json_decode('{
+ "media_buttons": false,
+ "quicktags": false,
+ "textarea_name": "descr",
+ "editor_height": 100
+ }', true)
+ )}
{if $contactInfo.fieldFail.descr}<p>{$contactInfo.fieldFail.descr}</p>{/if}
</td>
</tr>