umd/fieldstack.js
/**
 * If we have a selection, create a ContentState fragment and store
 * it in our internal clipboard. Subsequent paste events will use this
 * fragment if no external clipboard data is supplied.
 */
If we have a selection, create a ContentState fragment and store
it in our internal clipboard. Subsequent paste events will use this
fragment if no external clipboard data is supplied.
If we have a selection create a ContentState fragment and store it in our internal clipboard . Subsequent paste events will use this fragment if no external clipboard data is supplied .
function editOnCopy(editor, e) {
  var editorState = editor._latestEditorState;
  var selection = editorState.getSelection();
  if (selection.isCollapsed()) {
    e.preventDefault();
    return;
  }
  editor.setClipboard(getFragmentFromSelection_1(editor._latestEditorState));
}
function editOnCopy ( editor , e ) { var editorState = editor . _latestEditorState ; var selection = editorState . getSelection ( ) ; if ( selection . isCollapsed ( ) ) { e . preventDefault ( ) ; return ; } editor . setClipboard ( getFragmentFromSelection_1 ( editor . _latestEditorState ) ) ; }
If we have a selection, create a ContentState fragment and store
 it in our internal clipboard.
If we have a selection create a ContentState fragment and store it in our internal clipboard .
// No selection, so there's nothing to copy.