code: function (className, state) {
          var self = this;
  
          // Functions are not supported
          if (typeof className != 'string') {
            return self;
          }
  
          if (className.indexOf(' ') !== -1) {
            each(className.split(' '), function () {
              self.toggleClass(this, state);
            });
          } else {
            self.each(function (index, node) {
              var existingClassName, classState;
  
              classState = hasClass(node, className);
              if (classState !== state) {
                existingClassName = node.className;
  
                if (classState) {
                  node.className = trim((" " + existingClassName + " ").replace(' ' + className + ' ', ' '));
                } else {
                  node.className += existingClassName ? ' ' + className : className;
                }
              }
            });
          }
  
          return self;
        }
docs: Toggles the specified class name on the current set elements.
  
  @method toggleClass
  @param {String} className Class name to add/remove.
  @param {Boolean} state Optional state to toggle on/off.
  @return {tinymce.dom.DomQuery} Current set.