Link selected text when inserting file