{"action":"closed","issue":{"url":"https://api.github.com/repos/artf/grapesjs/issues/1458","repository_url":"https://api.github.com/repos/artf/grapesjs","labels_url":"https://api.github.com/repos/artf/grapesjs/issues/1458/labels{/name}","comments_url":"https://api.github.com/repos/artf/grapesjs/issues/1458/comments","events_url":"https://api.github.com/repos/artf/grapesjs/issues/1458/events","html_url":"https://github.com/artf/grapesjs/issues/1458","id":363566742,"node_id":"MDU6SXNzdWUzNjM1NjY3NDI=","number":1458,"title":"Embeded Jquery events in the grapesjs editor not working as expected.","user":{"login":"mrajeshkrossark","id":22819712,"node_id":"MDQ6VXNlcjIyODE5NzEy","avatar_url":"https://avatars1.githubusercontent.com/u/22819712?v=4","gravatar_id":"","url":"https://api.github.com/users/mrajeshkrossark","html_url":"https://github.com/mrajeshkrossark","followers_url":"https://api.github.com/users/mrajeshkrossark/followers","following_url":"https://api.github.com/users/mrajeshkrossark/following{/other_user}","gists_url":"https://api.github.com/users/mrajeshkrossark/gists{/gist_id}","starred_url":"https://api.github.com/users/mrajeshkrossark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrajeshkrossark/subscriptions","organizations_url":"https://api.github.com/users/mrajeshkrossark/orgs","repos_url":"https://api.github.com/users/mrajeshkrossark/repos","events_url":"https://api.github.com/users/mrajeshkrossark/events{/privacy}","received_events_url":"https://api.github.com/users/mrajeshkrossark/received_events","type":"User","site_admin":false},"labels":[{"id":902359545,"node_id":"MDU6TGFiZWw5MDIzNTk1NDU=","url":"https://api.github.com/repos/artf/grapesjs/labels/more-information-needed","name":"more-information-needed","color":"d4c5f9","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-09-25T13:00:56Z","updated_at":"2018-10-09T20:50:09Z","closed_at":"2018-10-09T20:50:09Z","author_association":"NONE","body":"\r\n\r\n@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.\r\nNote: Am using react app for wrapping the grapesjs editor.\r\n\r\nInitially the editor embeded my template and it is look like below image\r\n\r\n![untitled](https://user-images.githubusercontent.com/22819712/46062687-2f6a2a80-c188-11e8-9de1-3714af7a08b0.png)\r\n\r\n\r\nI 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. \r\n\r\n![untitled](https://user-images.githubusercontent.com/22819712/46062604-f762e780-c187-11e8-8fef-fa3ff2c4ce64.png)\r\n\r\n\r\nThe error is:\r\n`Uncaught TypeError: Cannot read property '_cash1537883139698' of undefined -- grapesjs:6506`\r\n\r\nthe below javascript code using inside the editor:\r\n\r\n```\r\n<script type=\"text/javascript\">\t\r\n\t\t$(document).ready(function () {\r\n\t\t\t/*\r\n\t\t\t* Plugin intialization\r\n\t\t\t*/\r\n\t\t\t$('#pagepiling').pagepiling({\r\n\t\t\t\tmenu: '#menu',\r\n\t\t\t\tanchors: ['VP', 'about', 'insurances-accepted', 'specialties', 'patient-reviews', 'contact'],\r\n\t\t\t\tsectionsColor: ['#fff', '#fff', '#fff', '#fff', '#fff', '#fff'],\r\n\t\t\t\tnavigation: {\r\n\t\t\t\t\t'position': 'left',\t\t\t\t\t\r\n\t\t\t\t},\r\n\t\t\t\tafterRender: function () {\r\n\r\n\t\t\t\t\t$('#pp-nav').addClass('custom');\r\n\t\t\t\t},\r\n\t\t\t\tafterLoad: function (anchorLink, index) {\r\n\t\t\t\t\t$(\"#title\").text(anchorLink);\r\n\t\t\t\t\tif (index > 1) {\r\n\t\t\t\t\t\t$('#pp-nav').removeClass('custom');\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t$('#pp-nav').addClass('custom');\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t});\r\n\t\t\t$('#toggle').click(function () {\r\n\t\t\t$(this).toggleClass('active');\r\n\t\t\t$('#overlay').toggleClass('open');\r\n\t\t\t});\r\n\t\t});\r\n\r\n\t</script>\r\n```\r\n"}}
{"actor":{"display_login":"no-response"}}