code: function (elm, attrs) {
          var self = this;
  
          self.$$(elm).each(function (i, node) {
            each(attrs, function (value, name) {
              self.setAttrib(node, name, value);
            });
          });
        }
docs: Sets two or more specified attributes of an element or elements.
  
  @method setAttribs
  @param {Element/String/Array} elm DOM element, element id string or array of elements/ids to set attributes on.
  @param {Object} attrs Name/Value collection of attribute items to add to the element(s).
  @example
  // Sets class and title attributes on all paragraphs in the active editor
  tinymce.activeEditor.dom.setAttribs(tinymce.activeEditor.dom.select('p'), {'class': 'myclass', title: 'some title'});
  
  // Sets class and title attributes on a specific element in the current page
  tinymce.DOM.setAttribs('mydiv', {'class': 'myclass', title: 'some title'});