fix editor for FF users ; prevents button click if input is empty