insert_tag - inserts only end tag, when no text selected - fixed.