tinymce.full.js
function DOMUtils(doc, settings) {
      var self = this, blockElementsMap;

      self.doc = doc;
      self.win = window;
      self.files = {};
      self.counter = 0;
      self.stdMode = !isIE || doc.documentMode >= 8;
      self.boxModel = !isIE || doc.compatMode == "CSS1Compat" || self.stdMode;
      self.styleSheetLoader = new StyleSheetLoader(doc);
      self.boundEvents = [];
      self.settings = settings = settings || {};
      self.schema = settings.schema;
      self.styles = new Styles({
        url_converter: settings.url_converter,
        url_converter_scope: settings.url_converter_scope
      }, settings.schema);

      self.fixDoc(doc);
      self.events = settings.ownEvents ? new EventUtils(settings.proxy) : EventUtils.Event;
      self.attrHooks = setupAttrHooks(self, settings);
      blockElementsMap = settings.schema ? settings.schema.getBlockElements() : {};
      self.$ = $.overrideDefaults(function () {
        return {
          context: doc,
          element: self.getRoot()
        };
      });

      /**
       * Returns true/false if the specified element is a block element or not.
       *
       * @method isBlock
       * @param {Node/String} node Element/Node to check.
       * @return {Boolean} True/False state if the node is a block element or not.
       */
      self.isBlock = function (node) {
        // Fix for #5446
        if (!node) {
          return false;
        }

        // This function is called in module pattern style since it might be executed with the wrong this scope
        var type = node.nodeType;

        // If it's a node then check the type and use the nodeName
        if (type) {
          return !!(type === 1 && blockElementsMap[node.nodeName]);
        }

        return !!blockElementsMap[node];
      };
    }
function DOMUtils(doc, settings) {
      var self = this, blockElementsMap;

      self.doc = doc;
      self.win = window;
      self.files = {};
      self.counter = 0;
      self.stdMode = !isIE || doc.documentMode >= 8;
      self.boxModel = !isIE || doc.compatMode == "CSS1Compat" || self.stdMode;
      self.styleSheetLoader = new StyleSheetLoader(doc);
      self.boundEvents = [];
      self.settings = settings = settings || {};
      self.schema = settings.schema;
      self.styles = new Styles({
        url_converter: settings.url_converter,
        url_converter_scope: settings.url_converter_scope
      }, settings.schema);

      self.fixDoc(doc);
      self.events = settings.ownEvents ? new EventUtils(settings.proxy) : EventUtils.Event;
      self.attrHooks = setupAttrHooks(self, settings);
      blockElementsMap = settings.schema ? settings.schema.getBlockElements() : {};
      self.$ = $.overrideDefaults(function () {
        return {
          context: doc,
          element: self.getRoot()
        };
      });

      /**
       * Returns true/false if the specified element is a block element or not.
       *
       * @method isBlock
       * @param {Node/String} node Element/Node to check.
       * @return {Boolean} True/False state if the node is a block element or not.
       */
      self.isBlock = function (node) {
        // Fix for #5446
        if (!node) {
          return false;
        }

        // This function is called in module pattern style since it might be executed with the wrong this scope
        var type = node.nodeType;

        // If it's a node then check the type and use the nodeName
        if (type) {
          return !!(type === 1 && blockElementsMap[node.nodeName]);
        }

        return !!blockElementsMap[node];
      };
    }
function DOMUtils ( doc , settings ) { var self = this , blockElementsMap ; self . doc = doc ; self . win = window ; self . files = { } ; self . counter = 0 ; self . stdMode = ! isIE || doc . documentMode >= 8 ; self . boxModel = ! isIE || doc . compatMode == "CSS1Compat" || self . stdMode ; self . styleSheetLoader = new StyleSheetLoader ( doc ) ; self . boundEvents = [ ] ; self . settings = settings = settings || { } ; self . schema = settings . schema ; self . styles = new Styles ( { url_converter : settings . url_converter , url_converter_scope : settings . url_converter_scope } , settings . schema ) ; self . fixDoc ( doc ) ; self . events = settings . ownEvents ? new EventUtils ( settings . proxy ) : EventUtils . Event ; self . attrHooks = setupAttrHooks ( self , settings ) ; blockElementsMap = settings . schema ? settings . schema . getBlockElements ( ) : { } ; self . $ = $ . overrideDefaults ( function ( ) { return { context : doc , element : self . getRoot ( ) } ; } ) ; /**
       * Returns true/false if the specified element is a block element or not.
       *
       * @method isBlock
       * @param {Node/String} node Element/Node to check.
       * @return {Boolean} True/False state if the node is a block element or not.
       */ self . isBlock = function ( node ) { // Fix for #5446 if ( ! node ) { return false ; } // This function is called in module pattern style since it might be executed with the wrong this scope var type = node . nodeType ; // If it's a node then check the type and use the nodeName if ( type ) { return ! ! ( type === 1 && blockElementsMap [ node . nodeName ] ) ; } return ! ! blockElementsMap [ node ] ; } ; }
Constructs a new DOMUtils instance. Consult the Wiki for more details on settings etc for this class.

@constructor
@method DOMUtils
@param {Document} doc Document reference to bind the utility class to.
@param {settings} settings Optional settings collection.
Constructs a new DOMUtils instance . Consult the Wiki for more details on settings etc for this class .