This should use the editor from the document (if a document was passed in...)