Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Sciscitator

    (@sciscitator)

    Currently TinyMCE Advanced doesn’t touch any third-party buttons which seems to be best 🙂

    Is this for sure? I currently have a problem displaying a Tinymce button of my own plugin when running Tinymce Extended. As soon as I activate your plugin the button disappears. Without it it gets displayed as expected.

    This is the code where I register the Tinymce button:

    // Add a callback to register our tinymce plugin
        add_filter("mce_external_plugins", function($plugin_array) {
            $plugin_array['pkt_footnotes_button'] =
                dirname(plugin_dir_url( __FILE__ )) . '/assets/tinymce-shortcode.js';
            return $plugin_array;
        }); 
    
        // Add a callback to add our button to the TinyMCE toolbar
        add_filter('mce_buttons', function($buttons) {
            $buttons[] = "pkt_footnotes_button";
            return $buttons;
        });

    The problem seems to be connected with a recent update of TinyMCE Extended. An earlier version worked without problems. Do you have any idea how to solve this issue?

    Thread Starter Sciscitator

    (@sciscitator)

    Hey Joachim,

    sorry for the late answer. I’m currently on a world trip and don’t have internet connection every day.

    I tried with PHP 5.3-5.5, no whitespaces before or after.

    But anyway I just updated to the new version and see that the error has fixed! Big thanks! 🙂

    I just got another minor thing:
    If I add something to a group and click “Save” (or “Sichern” in german) I would expect that the current state goes back to “Edit/Delete” (or “Bearbeiten/Löschen” in german).
    This is not the case. I have to explicitly click “Cancel” to get back to the “Edit/Delete” view. Not a big thing but still a small usability flaw imho.

    Keep up the good work!
    Henrik

    Thread Starter Sciscitator

    (@sciscitator)

    Hey Joachim,

    thanks for your answer.

    I can reproduce the warning by doing the following steps:
    1) Clicking on “Add New Group” / “Erstelle neue Gruppe”
    2) Clicking on “Save” / “Sichern” without adding any Content to the group

    The warning displays inside the popup after the message “Die Gruppe darf nicht leer sein” (“The group must not be empty”).

    Here’s the call stack:
    # Time Memory Function Location
    1 0.0008 263264 {main}( ) ../admin-ajax.php:0
    2 0.7258 37351376 do_action( ) ../admin-ajax.php:85
    3 0.7259 37352896 call_user_func_array: …/wp-includes/plugin.php:505} ( ) ../plugin.php:505
    4 0.7259 37352976 ContentAwareSidebars->add_sidebar_rule_ajax( ) ../plugin.php:505
    5 0.7262 37362488 header ( ) ../content-aware-sidebars.php:1097

    Kind regards

Viewing 3 replies - 1 through 3 (of 3 total)