<textarea name="{$NAME}" id="cf_{$NAME}_id" class="cf_tinymce">{$VALUE}</textarea>
<script>
cf_tinymce_settings["{$NAME}"] = {literal}{{/literal}
    skin: "lightgray",
    branding: false,
    menubar: false,
    elementpath: false,
{if $toolbar == "basic"}
    toolbar: [
        'bold italic underline strikethrough | bullist numlist'
    ],
{elseif $toolbar == "simple"}
    toolbar: [
        'bold italic underline strikethrough | bullist numlist | outdent indent | blockquote hr | link unlink forecolor backcolor'
    ],
    plugins: 'hr link textcolor lists',
{elseif $toolbar == "advanced"}
    toolbar: [
        'bold italic underline strikethrough | bullist numlist | outdent indent | blockquote hr | undo redo link unlink | fontselect fontsizeselect',
        'forecolor backcolor | subscript superscript code'
    ],
    plugins: 'hr link textcolor lists code',
{elseif $toolbar == "expert"}
    toolbar: [
        'bold italic underline strikethrough | bullist numlist | outdent indent | blockquote hr |  formatselect fontselect fontsizeselect',
        'undo redo link unlink | forecolor backcolor | subscript superscript | newdocument charmap removeformat cleanup code'
    ],
    plugins: 'hr link textcolor lists code',
{/if}
{if $resizing}
    statusbar: true,
    resize: true
{else}
    statusbar: false,
    resize: false
{/if}
{literal}}{/literal}
</script>
{if $comments}
    <div class="cf_field_comments">{$comments}</div>
{/if}