added currentDocument/Editor methods