Set isPreviewActive in the cmProjectPreview directive