<div id="modx-panel-resource-div"></div>
<div id="modx-resource-tvs-div">{$tvOutput}</div>
{foreach from=$hidden item=tv name='tv'}
    <input type="hidden" id="tvdef{$tv->id}" value="{$tv->default_text|escape}" />
    {$tv->get('formElement')}
{/foreach}

{$onDocFormPrerender}
{if $resource->richtext AND $_config.use_editor}
{$onRichTextEditorInit}
{/if}
