code: function (selection) {
        var rng = selection.getSel().getRangeAt(0);
        var startContainer = rng.startContainer;
        return startContainer.nodeType === 3 ? startContainer.parentNode : startContainer;
      }
docs: Returns the raw element instead of the fake cE=false element