tinymce.full.js
function getBrClientRect(brNode) {
        var doc = brNode.ownerDocument,
          rng = createRange(doc),
          nbsp = doc.createTextNode('\u00a0'),
          parentNode = brNode.parentNode,
          clientRect;

        parentNode.insertBefore(nbsp, brNode);
        rng.setStart(nbsp, 0);
        rng.setEnd(nbsp, 1);
        clientRect = ClientRect.clone(rng.getBoundingClientRect());
        parentNode.removeChild(nbsp);

        return clientRect;
      }
function getBrClientRect(brNode) {
        var doc = brNode.ownerDocument,
          rng = createRange(doc),
          nbsp = doc.createTextNode('\u00a0'),
          parentNode = brNode.parentNode,
          clientRect;

        parentNode.insertBefore(nbsp, brNode);
        rng.setStart(nbsp, 0);
        rng.setEnd(nbsp, 1);
        clientRect = ClientRect.clone(rng.getBoundingClientRect());
        parentNode.removeChild(nbsp);

        return clientRect;
      }
function getBrClientRect ( brNode ) { var doc = brNode . ownerDocument , rng = createRange ( doc ) , nbsp = doc . createTextNode ( '\u00a0' ) , parentNode = brNode . parentNode , clientRect ; parentNode . insertBefore ( nbsp , brNode ) ; rng . setStart ( nbsp , 0 ) ; rng . setEnd ( nbsp , 1 ) ; clientRect = ClientRect . clone ( rng . getBoundingClientRect ( ) ) ; parentNode . removeChild ( nbsp ) ; return clientRect ; }
Hack for older WebKit versions that doesn't support getBoundingClientRect on BR elements
Hack for older WebKit versions that doesn t support getBoundingClientRect on BR elements