Created
July 19, 2012 03:11
-
-
Save benvinegar/3140509 to your computer and use it in GitHub Desktop.
Make all your slides' <code> samples editable
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// no document ready check - put this at the end of <body> | |
;(function() { | |
var pre = Array.prototype.slice.call(document.getElementsByTagName('code')); | |
pre.forEach(function (p) { | |
p.setAttribute('contenteditable', 'true'); | |
}); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment