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?
1 Answer
I have found the solution:
$display.getWindow().$config.CurrentEditor
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, 2017 at 8:10
-