Skip to content

Instantly share code, notes, and snippets.

@badsyntax
Created April 26, 2010 12:07
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save badsyntax/379244 to your computer and use it in GitHub Desktop.
Save badsyntax/379244 to your computer and use it in GitHub Desktop.
// 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