Document second argument to replaceSelection