// Digital Pi - Easy Editor GUI // Apply labels atop element inside the Marketo LP Editor experience to make editing easier // Works in conjuction with a Boolean variable which adds the 'EasyEditorGUI' class to the body element // 3.18.19 [dR] // check for Marketo Editor - add body class for GUI overlay var EDITOR = $('meta[name*="mkto-force-mobile"]'); // Marketo adds this metatag inside the editor only var GUI = $(EDITOR).length; // if the length is >0, the metatag exists [is in editor mode] if(GUI > 0){ $('body').addClass('EasyEditorGUI'); // CSS contains stylesheet for EasyEditor GUI var CSS = '' // inject GUI