Add copy action for HTML preview

Show a custom context menu for the HTML preview that contains a copy
action.