aloha_src/static/js/plugins/common/paste/lib/paste-plugin.js
/**
	 * Set the selection to the given range and focus on the editable in which
	 * the selection is in (if any).
	 *
	 * This function is used to restore the selection to what it was before
	 * calling redirectPaste() at the offset of the pasting process.
	 *
	 * @param {WrappedRange} range The range to restore.
	 */
Set the selection to the given range and focus on the editable in which
the selection is in (if any).

This function is used to restore the selection to what it was before
calling redirectPaste() at the offset of the pasting process.

@param {WrappedRange} range The range to restore.
Set the selection to the given range and focus on the editable in which the selection is in ( if any ) . This function is used to restore the selection to what it was before calling redirectPaste () at the offset of the pasting process . @param { WrappedRange } range The range to restore .
function restoreSelection(range) {
		var editable = CopyPaste.getEditableAt(range);
		if (editable) {
			editable.obj.focus();
		}
		CopyPaste.setSelectionAt(range);
		window.scrollTo(
			scrollPositionBeforePaste.x,
			scrollPositionBeforePaste.y
		);
	}
function restoreSelection ( range ) { var editable = CopyPaste . getEditableAt ( range ) ; if ( editable ) { editable . obj . focus ( ) ; } CopyPaste . setSelectionAt ( range ) ; window . scrollTo ( scrollPositionBeforePaste . x , scrollPositionBeforePaste . y ) ; }
Set the selection to the given range and focus on the editable in which
 the selection is in (if any).
Set the selection to the given range and focus on the editable in which the selection is in ( if any ) .