Just like in the title. Is it possible? PageEditing.PageIsInEditMode returns true in both modes.
By Preview Mode I mean this button on the top saying “Toggle preview mode”.
Maybe this will do the work for you?
@Doung Nguyen thanks for clear answer. I know now I should look somewhere else for workaround of my problem.
@Johan, that will not help as it gives true in both cases.
There's still the possibility to guess the current mode from the url, something similar to this: http://www.christianengvall.se/check-page-episerver-opened-editadmin-mode/