{"action":"created","issue":{"url":"https://api.github.com/repos/mantisbt-plugins/BBCodePlus/issues/3","labels_url":"https://api.github.com/repos/mantisbt-plugins/BBCodePlus/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/mantisbt-plugins/BBCodePlus/issues/3/comments","events_url":"https://api.github.com/repos/mantisbt-plugins/BBCodePlus/issues/3/events","html_url":"https://github.com/mantisbt-plugins/BBCodePlus/issues/3","id":108113478,"number":3,"title":"MarkItUp not working","user":{"login":"Kirill","id":302940,"avatar_url":"https://avatars.githubusercontent.com/u/302940?v=3","gravatar_id":"","url":"https://api.github.com/users/Kirill","html_url":"https://github.com/Kirill","followers_url":"https://api.github.com/users/Kirill/followers","following_url":"https://api.github.com/users/Kirill/following{/other_user}","gists_url":"https://api.github.com/users/Kirill/gists{/gist_id}","starred_url":"https://api.github.com/users/Kirill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kirill/subscriptions","organizations_url":"https://api.github.com/users/Kirill/orgs","repos_url":"https://api.github.com/users/Kirill/repos","events_url":"https://api.github.com/users/Kirill/events{/privacy}","received_events_url":"https://api.github.com/users/Kirill/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-24T11:37:35Z","updated_at":"2015-09-24T12:20:17Z","closed_at":null,"body":"MarkItUp not working:\r\n\r\n>Refused to execute inline script because it violates the following Content Security Policy directive: \"script-src 'self'\"."},"comment":{"url":"https://api.github.com/repos/mantisbt-plugins/BBCodePlus/issues/comments/142913072","html_url":"https://github.com/mantisbt-plugins/BBCodePlus/issues/3#issuecomment-142913072","issue_url":"https://api.github.com/repos/mantisbt-plugins/BBCodePlus/issues/3","id":142913072,"user":{"login":"dregad","id":449891,"avatar_url":"https://avatars.githubusercontent.com/u/449891?v=3","gravatar_id":"","url":"https://api.github.com/users/dregad","html_url":"https://github.com/dregad","followers_url":"https://api.github.com/users/dregad/followers","following_url":"https://api.github.com/users/dregad/following{/other_user}","gists_url":"https://api.github.com/users/dregad/gists{/gist_id}","starred_url":"https://api.github.com/users/dregad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dregad/subscriptions","organizations_url":"https://api.github.com/users/dregad/orgs","repos_url":"https://api.github.com/users/dregad/repos","events_url":"https://api.github.com/users/dregad/events{/privacy}","received_events_url":"https://api.github.com/users/dregad/received_events","type":"User","site_admin":false},"created_at":"2015-09-24T12:20:17Z","updated_at":"2015-09-24T12:20:17Z","body":"This is caused by CSP. I haven't tested myself, but using your plugin with Mantis 1.3 under Firefox should let you reproduce the issue.\r\n\r\nProblem is [here](https://github.com/mantisbt-plugins/BBCodePlus/blob/master/BBCodePlus/BBCodePlus.php#L87). You need to move your code to a separate file and include it with `<script src=... >` like you did for the libraries."}}