Add preview function when edit answer or question.