basic framework for logging selected text or image URL