Is there any command with Anguilla Javascript Framework that allows us to know if we are working in XPM or CME in order to execute different commands?


I have found the solution:


It returns: "CME" or "SiteEdit".

Hope it helps!

  • Nice find! I'm sure I've seen people ask this in the past. By the way, I believe that can be simplified to $config.CurrentEditor Jun 21 '17 at 8:10
  • That it's true! Jun 26 '17 at 14:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.