• Resolved mediaonmars

    (@mediaonmars)


    First of all, thanks for an awesome plugin!
    There’s seem to be an issue in your latest versions (as it was working fine before). The button breaks the wp_editor textareas on pages added via “add_menu_page” function. It’s probably missing the “forget-about-shortcode-buttons-admin.js” file. When I custom enqueue this script the wp_editor starts to work but the “insert the button” in TinyMCE still missing some js functions and doesn’t work. Look like more files should be enqueued for this?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author DesignsAndCode

    (@designsandcode)

    Hi there

    When you add_menu_page, are you creating a custom page, and then manually initialising an instance of the editor?

    Thanks

    Thread Starter mediaonmars

    (@mediaonmars)

    I’m rather passing the content through a $function var here. But yes, that content has a few fields including those textareas created with wp_editor(). This was working fine (and WP’s native MCE still works btw) but your custom MCE button no longer works and is throwing a js error. It was definitely working in previous versions.

    Plugin Author DesignsAndCode

    (@designsandcode)

    This should be solved in the latest update ??

    Thread Starter mediaonmars

    (@mediaonmars)

    It is solved. Thanks for your support and awesome plugin!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Error with wp_editor on admin pages added via add_menu_page()’ is closed to new replies.