remove text element if empty after edition