Issue #1458Opened September 25, 2018by mrajeshkrossark0 reactions

Embeded Jquery events in the grapesjs editor not working as expected.

Question

@artf , I tried to embed my template into the grapesjs editor. The issue am getting is the editor not working as expected with that template. Note: Am using react app for wrapping the grapesjs editor.

Initially the editor embeded my template and it is look like below image

untitled

I used Parallax effects for my template. The issue is when I click first time on the navigation bar, it reacts differently and load one more editor iniside the existing editor.

untitled

The error is: Uncaught TypeError: Cannot read property '_cash1537883139698' of undefined -- grapesjs:6506

the below javascript code using inside the editor:

<script type="text/javascript">	
		$(document).ready(function () {
			/*
			* Plugin intialization
			*/
			$('#pagepiling').pagepiling({
				menu: '#menu',
				anchors: ['VP', 'about', 'insurances-accepted', 'specialties', 'patient-reviews', 'contact'],
				sectionsColor: ['#fff', '#fff', '#fff', '#fff', '#fff', '#fff'],
				navigation: {
					'position': 'left',					
				},
				afterRender: function () {

					$('#pp-nav').addClass('custom');
				},
				afterLoad: function (anchorLink, index) {
					$("#title").text(anchorLink);
					if (index > 1) {
						$('#pp-nav').removeClass('custom');
					} else {
						$('#pp-nav').addClass('custom');
					}
				},
			});
			$('#toggle').click(function () {
			$(this).toggleClass('active');
			$('#overlay').toggleClass('open');
			});
		});

	</script>

Answers (3)

artfSeptember 29, 20180 reactions

Please a create a live demo of the issue

no-response[bot]October 9, 20180 reactions

This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further.

lock[bot]October 9, 20190 reactions

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.