tinymce.full.js
function getRole(elm) {
        elm = elm || focusedElement;

        if (isElement(elm)) {
          return elm.getAttribute('role');
        }

        return null;
      }
function getRole(elm) {
        elm = elm || focusedElement;

        if (isElement(elm)) {
          return elm.getAttribute('role');
        }

        return null;
      }
function getRole ( elm ) { elm = elm || focusedElement ; if ( isElement ( elm ) ) { return elm . getAttribute ( 'role' ) ; } return null ; }
Returns the currently focused elements wai aria role of the currently
focused element or specified element.

@private
@param {Element} elm Optional element to get role from.
@return {String} Role of specified element.
Returns the currently focused elements wai aria role of the currently focused element or specified element .