added function previewingDraft

plugins might want to use this for doing something special.