Split into two separate actions, one for pasting HTML, one for selecting a File/URL.