insert code into text on emoticon selection