• Hi every body.
    I designed some button for Tiny editor in my site and they worked correctly.
    After I upgraded WordPress to last version when I want creating a new post the buttons are hidden , when I want editing a post they are visible.
    what’s the problem?

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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.

    Thread Starter hosseintv

    (@hosseintv)

    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' );?>
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Manual button TinyMCE’ is closed to new replies.