{"action":"opened","issue":{"url":"https://api.github.com/repos/plone/diazo/issues/37","labels_url":"https://api.github.com/repos/plone/diazo/issues/37/labels{/name}","comments_url":"https://api.github.com/repos/plone/diazo/issues/37/comments","events_url":"https://api.github.com/repos/plone/diazo/issues/37/events","html_url":"https://github.com/plone/diazo/issues/37","id":54612793,"number":37,"title":"Script tag placed at end of an HTML document prevents previewing and editing","user":{"login":"bledwell","id":4641090,"avatar_url":"https://avatars.githubusercontent.com/u/4641090?v=3","gravatar_id":"","url":"https://api.github.com/users/bledwell","html_url":"https://github.com/bledwell","followers_url":"https://api.github.com/users/bledwell/followers","following_url":"https://api.github.com/users/bledwell/following{/other_user}","gists_url":"https://api.github.com/users/bledwell/gists{/gist_id}","starred_url":"https://api.github.com/users/bledwell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bledwell/subscriptions","organizations_url":"https://api.github.com/users/bledwell/orgs","repos_url":"https://api.github.com/users/bledwell/repos","events_url":"https://api.github.com/users/bledwell/events{/privacy}","received_events_url":"https://api.github.com/users/bledwell/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-16T19:11:08Z","updated_at":"2015-01-16T19:11:08Z","closed_at":null,"body":"Im using the CSS framework \"Foundation\"\r\nThe theming editor in Plone seems to have a bug that prevents a page from displaying in the editor and being able to edit its contents if theres a \r\n`<script>$(document).foundation();</script>` placed before the `</body>` tag of an HTML document. Which is what Foundation recommends.\r\n\r\nWhen I activate the theme it works as expected and the pages get themed but if I were to go back to the theming editor \"Site-Setup > Theming > Modify Theme\" and select the HTML document that contains the script I get a spinning icon. This would be fine if I didn't make any mistakes when adding my rules but Id like to be able to go back in and edit via the theming editor.\r\n\r\nIm running\r\nPlone 4.3 \r\nDiazo 1.1\r\n\r\nIve tried this in Safari, Chrome and FireFox all exhibit the same behavior.\r\n![screen shot 2015-01-16 at 1 10 36 pm](https://cloud.githubusercontent.com/assets/4641090/5782497/1ddf2e16-9d81-11e4-93ae-74951d74cb08.png)\r\n\r\n\r\nthanks,\r\nBrian"}}