Check if form field is empty

Okay, a snippet like this should work then:

{current_value={site: text; selector=textarea.d-editor-input}}
{if: len(trim(current_value)) = 0}
{import: /emptysnippet}
{else}
{import: /nonemptysnippet}
{endif}