public/javascripts/codemirror/js/editor.js
function writeNode(node, c, end) {
      var toYield = [];
      forEach(simplifyDOM(node, end), function(part) {
        toYield.push(insertPart(part));
      });
      return yield(toYield.join(""), c);
    }
function writeNode(node, c, end) {
      var toYield = [];
      forEach(simplifyDOM(node, end), function(part) {
        toYield.push(insertPart(part));
      });
      return yield(toYield.join(""), c);
    }
function writeNode ( node , c , end ) { var toYield = [ ] ; forEach ( simplifyDOM ( node , end ) , function ( part ) { toYield . push ( insertPart ( part ) ) ; } ) ; return yield ( toYield . join ( "" ) , c ) ; }
Extract the text and newlines from a DOM node, insert them into the document, and yield the textual content. Used to replace non-normalized nodes.
Extract the text and newlines from a DOM node insert them into the document and yield the textual content . Used to replace non - normalized nodes .