hyunsupul / aesop-core

Open-sourced suite of components that empower interactive storytelling in WordPress.
http://aesopstoryengine.com
GNU General Public License v2.0
243 stars 56 forks source link

Component popup not working in Divi builder #322

Open GetGo opened 7 years ago

GetGo commented 7 years ago

I hope this is the right way to report this and ask for help. The Divi theme has a layout builder, with a text component that is much like the regular Wordpress visual builder. The buttons other plugins create on the editor, like Caldera Forms and Pods Shortcode work but for some reason the Aesop "Add Component" does not open the pop up the Window to select components in this editor. I contacted the theme developer in this ticket and they tracked the issue to this file: /plugins/aesop-story-engine/admin/assets/js/generator.js This code is not popping up the Window in the Divi editor:

$('.aesop-add-story-component').click(function(e){
e.preventDefault();

if ( typeof window.aiactive !== 'undefined' ) {
alert('Nesting components within the visual interface is not supported.');
} else if ( typeof window.ailocked !== 'undefined' ) {
alert('Please click on the editor and set your cursor location first.');
} else {
jQuery('body').toggleClass('modal-open');
jQuery(modal).toggleClass('aesop-generator-open');
}

});

Is there any way for Divi and Aesop to coexist? I am new to this type of code level, but if there is any changes I can make to my theme or site that will help this work please let me know. thank you!