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

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.

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)
Please a create a live demo of the issue
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.
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.
Issue #1296
Custom Rich Text Editor is not working
Hi @artf, I've just created a custom plugin of the RTE using different libraries like CKEditor 5, TinyMCE 4 or pell but all of them with th...
Issue #1255
[QUESTION]: How to set editor html contents from custom component?
I'm having trouble getting a custom block+component to display its template HTML inside the grapes editor. Within the exported HTML, the ma...
Issue #1696
Traits appear first time when draged custom component
Hi artf , i have created custom component and add traits for it , when dragging this component to editor and select it the setting traits w...
Issue #1781
add a font-size type prop
I'm trying to create a font-size type of property that I would like to add to the dimensions sector. Doing this: Getting the value and all,...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.