I received the question if it is possible to get the current active context inside a custom placeholder definition. This is not the same as within a placeholder control as a placeholder control always uses the CmsHttpContext.
A placeholder can live without the CmsHttpContext (e.g. in a CmsApplicationContext). To check which mode the context is in it is necessary to access the context object of the current posting.