how to paint using stencil mode directly in image editor
Yes, you can use the stencil in the Image Editor in 2.8 once you confirm you have usable UVs on your object. Good thing is the Cylinder primitive already comes packaged with basic UV mapping. Just be sure to use the Image Editor to paint and not try the UV Editor since they have been split.