Skip to content

Instantly share code, notes, and snippets.

@psahni
Created August 12, 2011 12:44
Show Gist options
  • Save psahni/1141958 to your computer and use it in GitHub Desktop.
Save psahni/1141958 to your computer and use it in GitHub Desktop.
Tiny MCE
function setup(){
tinyMCE.init({
browsers : "msie,gecko,safari,chrome,opera",
cleanup_on_startup : true,
convert_fonts_to_spans : true,
mode : 'textareas',
onchange_callback : 'myCustomOnChangeHandler',
plugins : "inlinepopups,safari,curblyadvimage,paste",
theme : 'advanced',
theme_advanced_buttons1 : "bold,italic,underline,separator,bullist,numlist,link",
theme_advanced_buttons2 : "",
theme_advanced_buttons3 : "",
theme_advanced_resizing : true,
theme_advanced_statusbar_location : 'bottom',
theme_advanced_toolbar_align : 'left',
theme_advanced_toolbar_location : 'top',
handle_event_callback : 'handleBlur'
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment