Clear link will be disabled when coding editor is empty

#782