add code to cursor position
insert link code