title: Sitecore: Detect user in Page Editor mode
body: <p>Can I know how to detect user is in page editor mode using code?
  This is because, I have a component, when user browses from page editor, it will search in master_index folder instead of web_index folder.</p>