umd/fieldstack.js
/**
 * Regenerate tree map objects for all ContentBlocks that have changed
 * between the current editorState and newContent. Returns an OrderedMap
 * with only changed regenerated tree map objects.
 */
Regenerate tree map objects for all ContentBlocks that have changed
between the current editorState and newContent. Returns an OrderedMap
with only changed regenerated tree map objects.
Regenerate tree map objects for all ContentBlocks that have changed between the current editorState and newContent . Returns an OrderedMap with only changed regenerated tree map objects .
function regenerateTreeForNewBlocks(editorState, newBlockMap, newEntityMap, decorator) {
  var contentState = editorState.getCurrentContent().set('entityMap', newEntityMap);
  var prevBlockMap = contentState.getBlockMap();
  var prevTreeMap = editorState.getImmutable().get('treeMap');
  return prevTreeMap.merge(newBlockMap.toSeq().filter(function (block, key) {
    return block !== prevBlockMap.get(key);
  }).map(function (block) {
    return BlockTree_1.generate(contentState, block, decorator);
  }));
}
function regenerateTreeForNewBlocks ( editorState , newBlockMap , newEntityMap , decorator ) { var contentState = editorState . getCurrentContent ( ) . set ( 'entityMap' , newEntityMap ) ; var prevBlockMap = contentState . getBlockMap ( ) ; var prevTreeMap = editorState . getImmutable ( ) . get ( 'treeMap' ) ; return prevTreeMap . merge ( newBlockMap . toSeq ( ) . filter ( function ( block , key ) { return block !== prevBlockMap . get ( key ) ; } ) . map ( function ( block ) { return BlockTree_1 . generate ( contentState , block , decorator ) ; } ) ) ; }
Regenerate tree map objects for all ContentBlocks that have changed
 between the current editorState and newContent.
Regenerate tree map objects for all ContentBlocks that have changed between the current editorState and newContent .