plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.all.js
function(node) {
      var cssStyleMatch;
      while (node) {
        cssStyleMatch = this.cssStyle ? hasStyleAttr(node, this.similarStyleRegExp) : false;

        if (node.nodeType == wysihtml5.ELEMENT_NODE && node.getAttribute("contenteditable") != "false" && rangy.dom.arrayContains(this.tagNames, node.tagName.toLowerCase()) && cssStyleMatch) {
          return node;
        }
        node = node.parentNode;
      }
      return false;
    }
function(node) {
      var cssStyleMatch;
      while (node) {
        cssStyleMatch = this.cssStyle ? hasStyleAttr(node, this.similarStyleRegExp) : false;

        if (node.nodeType == wysihtml5.ELEMENT_NODE && node.getAttribute("contenteditable") != "false" && rangy.dom.arrayContains(this.tagNames, node.tagName.toLowerCase()) && cssStyleMatch) {
          return node;
        }
        node = node.parentNode;
      }
      return false;
    }
function ( node ) { var cssStyleMatch ; while ( node ) { cssStyleMatch = this . cssStyle ? hasStyleAttr ( node , this . similarStyleRegExp ) : false ; if ( node . nodeType == wysihtml5 . ELEMENT_NODE && node . getAttribute ( "contenteditable" ) != "false" && rangy . dom . arrayContains ( this . tagNames , node . tagName . toLowerCase ( ) ) && cssStyleMatch ) { return node ; } node = node . parentNode ; } return false ; }
returns parents of node with given style attribute
returns parents of node with given style attribute