Problem
I'm trying to customise the TinyMCE text editor. Several of the common options for overruling Tiny MCE didn't seem to work for me. So instead I overwrote the functions in my functions file:
function tinymce_editor_buttons($buttons) {
return array(
"justifyleft",
"justifycenter",
"justifyright",
"bold",
"italic",
"underline",
"bullist",
"numlist",
"link",
"hr",
"undo",
"redo",
"separator",
"pastetext",
"removeformat",
"formatselect",
"styleselect",
);
}
add_filter("mce_buttons", "tinymce_editor_buttons", 99);
function tinymce_editor_buttons_second_row($buttons) {
//return an empty array to remove this line
return array();
}
add_filter("mce_buttons_2", "tinymce_editor_buttons_second_row", 99);
This works great except for the justify functions and separator, which don't appear.
This post lists all the shortcodes, so I think I have the correct codes, and removing and adding other options works, however these two don't.
Why would these options not appear when all the others do?