Skip to content

Instantly share code, notes, and snippets.

@MarcDiethelm
Created March 5, 2013 17:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MarcDiethelm/5092189 to your computer and use it in GitHub Desktop.
Save MarcDiethelm/5092189 to your computer and use it in GitHub Desktop.
/*
* Find all the divs with IDs that start with the "ceid_" prefix and add the "liveEditElement" class to them.
*/
(function() {
if (typeof window.jQuery == 'undefined') {
setTimeout(arguments.callee, 100);
} else {
$('div[id^="ceid_"]').addClass('liveEditElement');
}
})()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment