Clear editor before showing the gradient code
Fix typo