Created
April 26, 2010 12:07
-
-
Save badsyntax/379244 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
// simple jquery tinymce lazyload | |
// - using $.getScript alone will not work | |
// - it's important to set the tinymce basepath, and set the domLoaded attribute | |
window.tinyMCEPreInit = { | |
base: '/js/tiny_mce/', | |
suffix : '', | |
query : '' | |
}; | |
$(function(){ | |
$.getScript('/js/tiny_mce/tiny_mce.js', function(){ | |
tinymce.dom.Event.domLoaded = true; | |
tinyMCE.init({ | |
mode: 'textareas', | |
theme: 'advanced' | |
}); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment