Removed HTML document check so the dialog comes up on any document.