Add a sample with selected text