code: function getFocusedEditor() {
          var currentEditor = getCurrentFullEditor();
          if (currentEditor) {
  
              // See if any inlines have focus
              var focusedInline = _getFocusedInlineEditor();
              if (focusedInline) {
                  return focusedInline;
              }
  
              // otherwise, see if full-sized editor has focus
              if (currentEditor.hasFocus()) {
                  return currentEditor;
              }
          }
  
          return null;
      }
docs: Returns the currently focused editor instance (full-sized OR inline editor).
  This function is similar to getActiveEditor(), with one main difference: this
  function will only return editors that currently have focus, whereas
  getActiveEditor() will return the last visible editor that was given focus (but
  may not currently have focus because, for example, a dialog with editable text
  is open).
  @return {?Editor}