JC-1339 Fixed selection after insert bb-codes (for IE10 and Opera).