/**
* TinyMCE Customization
*/
/* --------------------------------------------------------------------
I. Apply Theme Stylesheet to the TinyMCE Editor
-------------------------------------------------------------------- */
function gs_add_editor_styles() {
add_editor_style('css/editor-styles.css');
}
add_action('admin_init', 'gs_add_editor_styles');
/* --------------------------------------------------------------------
II. Customize First Row Icons
** Based on code by Kevin Leary
** http://www.kevinleary.net/customizing-tinymce-wysiwyg-editor-wordpress/
-------------------------------------------------------------------- */
if( !function_exists('gs_custom_mce_buttons') ){
function gs_custom_mce_buttons($buttons) {
/*
Sets the first row of buttons. Specify your desired buttons in the following array.
A full list of available buttons can be found here:
http://www.tinymce.com/wiki.php/Buttons/controls
*/
return array(
'formatselect',
'bold',
'italic',
'underline',
'bullist',
'numlist',
'blockquote',
'removeformat',
'spellchecker',
'link',
'unlink',
'wp_more',
'undo',
'redo',
'fullscreen',
'wp_help'
);
/*
WordPress first row defaults:
return array(
'bold',
'italic',
'strikethrough',
'separator',
'bullist',
'numlist',
'blockquote',
'separator',
'justifyleft',
'justifycenter',
'justifyright',
'separator',
'link',
'unlink',
'wp_more',
'separator',
'spellchecker',
'fullscreen',
'wp_adv'
);
*/
}
add_filter('mce_buttons', 'gs_custom_mce_buttons', 0);
}
/* --------------------------------------------------------------------
III. Customize Second Row Icons
-------------------------------------------------------------------- */
if( !function_exists('gs_custom_mce_buttons_2') ){
function gs_custom_mce_buttons_2($buttons) {
/*
Sets the second row of buttons. Specify your desired buttons in the following array.
A full list of available buttons can be found here:
http://www.tinymce.com/wiki.php/Buttons/controls
*/
return array();
/*
WordPress second row defaults:
return array(
'formatselect',
'underline',
'justifyfull',
'forecolor',
'separator',
'pastetext',
'pasteword',
'removeformat',
'separator',
'media',
'charmap',
'separator',
'outdent',
'indent',
'separator',
'undo',
'redo',
'wp_help'
);
*/
}
}
add_filter('mce_buttons_2', 'gs_custom_mce_buttons_2', 0);
/* --------------------------------------------------------------------
IV. Customize Format Types Menu
Documentation:
http://www.tinymce.com/wiki.php/Configuration:theme_advanced_blockformats
-------------------------------------------------------------------- */
if( !function_exists('gs_custom_mce_format') ){
function gs_custom_mce_format($init) {
// Add block format elements you want to show in dropdown
$init['theme_advanced_blockformats'] = 'p,h2,h3,h4';
/* Include WordPress Defaults */
//$init['theme_advanced_blockformats'] = 'p,address,pre,h1,h2,h3,h4,h5,h6';
/* Include All Available Formats:*/
//$init['theme_advanced_blockformats'] = 'p,div,h1,h2,h3,h4,h5,h6,blockquote,dt,dd,code,samp';
return $init;
}
add_filter('tiny_mce_before_init', 'gs_custom_mce_format' );
}
The School of Visual Arts is committed to making the information on its website accessible to all, including individuals with disabilities, and to ensuring its website complies with Title III of the Americans with Disabilities Act by using World Wide Web Consortium’s (W3C) Web Content Accessibility Guidelines (WCAG) 2.0 Level A Success Criteria. Please keep in mind that our efforts are ongoing, therefore, there may be certain areas of our website that achieve increased accessibility at a rate different than others during a given period of time.
If you would like to report any concern or difficulty accessing information on our website, or request access to content that is currently unavailable to you, please contact one of our office below: