code: function() {
        var win       = this.doc.defaultView,
            selection = win.getSelection();
        selection.modify("extend", "left", "lineboundary");
        selection.modify("extend", "right", "lineboundary");
      }
docs: See https://developer.mozilla.org/en/DOM/Selection/modify