Moderator
t-p
(@t-p)
Please identify the plugin you are using:
https://wordpress.org/plugins/search/TinyMCE/
then post in that plugin’s dedicated support forum.
I’m not using any plugin .I created them manually like this :
I created this direction : ‘myThemeFolder/plugins/tinymce-customize/berdook-tinymce.php’ and two other files.
berdook-tinymce.php =>
<?php
add_action('init', 'berdook_buttons');
function berdook_buttons() {
add_filter( "mce_external_plugins", "berdook_add_buttons" );
add_filter( 'mce_buttons', 'berdook_register_buttons' );
}
function berdook_add_buttons($plugin_array) {
$plugin_array['berdook'] = get_template_directory_uri() . '/plugins/tinymce-customize/berdook-tinymce-plugin.js';
return $plugin_array;
}
function berdook_register_buttons($buttons) {
array_push($buttons, 'eos');
return $buttons;
}
function appthemes_add_quicktags() {
if (wp_script_is('quicktags')){
?>
<script type="text/javascript">
QTags.addButton( 'Pre', 'Pre', '<pre></pre>', '', '', 'Pre', 100);
</script>
<?php
}
}
add_action( 'admin_print_footer_scripts', 'appthemes_add_quicktags' );?>