put tag in input box during preview