Make sure TinyMCE is not disabled before adding the size saving functions, see #21718

git-svn-id: http://core.svn.wordpress.org/trunk@22017 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Ozz 2012-09-26 19:35:36 +00:00
parent ad572d63a1
commit 50be456284
1 changed files with 37 additions and 36 deletions

View File

@ -700,6 +700,7 @@ jQuery(document).ready( function($) {
});
})();
if ( typeof(tinymce) != 'undefined' ) {
tinymce.onAddEditor.add(function(mce, ed){
if ( ed.id != 'content' )
return;
@ -745,5 +746,5 @@ jQuery(document).ready( function($) {
});
});
});
}
});