code: function() {
        if (!this.container.firstChild)
          return "";
  
        var accum = [];
        select.markSelection(this.win);
        forEach(traverseDOM(this.container.firstChild), method(accum, "push"));
        webkitLastLineHack(this.container);
        select.selectMarked();
        return cleanText(accum.join(""));
      }
docs: Extract the code from the editor.