js/tinymce/tinymce.jquery.js
function (dom, selection) {
      var caretContainer;

      caretContainer = getParentCaretContainer(selection.getStart());
      if (caretContainer && !dom.isEmpty(caretContainer)) {
        Tools.walk(caretContainer, function (node) {
          if (node.nodeType === 1 && node.id !== CARET_ID && !dom.isEmpty(node)) {
            dom.setAttrib(node, 'data-mce-bogus', null);
          }
        }, 'childNodes');
      }
    }
function (dom, selection) {
      var caretContainer;

      caretContainer = getParentCaretContainer(selection.getStart());
      if (caretContainer && !dom.isEmpty(caretContainer)) {
        Tools.walk(caretContainer, function (node) {
          if (node.nodeType === 1 && node.id !== CARET_ID && !dom.isEmpty(node)) {
            dom.setAttrib(node, 'data-mce-bogus', null);
          }
        }, 'childNodes');
      }
    }
function ( dom , selection ) { var caretContainer ; caretContainer = getParentCaretContainer ( selection . getStart ( ) ) ; if ( caretContainer && ! dom . isEmpty ( caretContainer ) ) { Tools . walk ( caretContainer , function ( node ) { if ( node . nodeType === 1 && node . id !== CARET_ID && ! dom . isEmpty ( node ) ) { dom . setAttrib ( node , 'data-mce-bogus' , null ) ; } } , 'childNodes' ) ; } }
Checks if the parent caret container node isn't empty if that is the case it will remove the bogus state on all children that isn't empty
Checks if the parent caret container node isn t empty if that is the case it will remove the bogus state on all children that isn t empty