Support

Home Forums Event Espresso Premium Editor broking with javascript error.

Editor broking with javascript error.

Posted: May 14, 2015 at 7:37 am


Zoe E

May 14, 2015 at 7:37 am

Hi we are running the latest version we have a plugin installed called Accordion Shortcodes.

The issue is when this plugin is enabled it causes the editor to brake and not work. this has happened on two websites now.

http://prntscr.com/72hvn6

http://prntscr.com/75195v

there two screenshots to see the erro that is happening.

https://wordpress.org/support/topic/accordion-shortcodes-javascript-error-stopping-editor-opening?replies=6#post-6949969

I have asked the person who made the plugin whats causing this issue but they can’t see the error as they only have the light version.

Is there anyway you can help solve this issue as that plugin is really good. or posting on that other forum to help the developer fix the issue.

Many thanks.


Josh

  • Support Staff

May 14, 2015 at 10:22 am

Hi Zoe,

You can make it so the Accordion Shortcode scripts load in the event editor (and other EE editors like venues) by opening up the accordion-shortcodes/tinymce/tinymce.php file and on line 15 where it has this:

foreach(array('post.php','post-new.php') as $hook) {

you change it to this:

foreach(array('post.php','post-new.php','toplevel_page_espresso_events') as $hook) {

This is kind of a quick and dirty hack, but it will help you get up and running with your site, and maybe it will help guide the Accordion plugin developer to a more robust solution.

The support post ‘Editor broking with javascript error.’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso