{"action":"created","issue":{"url":"https://api.github.com/repos/madebymany/sir-trevor-js/issues/287","labels_url":"https://api.github.com/repos/madebymany/sir-trevor-js/issues/287/labels{/name}","comments_url":"https://api.github.com/repos/madebymany/sir-trevor-js/issues/287/comments","events_url":"https://api.github.com/repos/madebymany/sir-trevor-js/issues/287/events","html_url":"https://github.com/madebymany/sir-trevor-js/issues/287","id":54865396,"number":287,"title":"block:create event doesn't fire","user":{"login":"kitation","id":1537694,"avatar_url":"https://avatars.githubusercontent.com/u/1537694?v=3","gravatar_id":"","url":"https://api.github.com/users/kitation","html_url":"https://github.com/kitation","followers_url":"https://api.github.com/users/kitation/followers","following_url":"https://api.github.com/users/kitation/following{/other_user}","gists_url":"https://api.github.com/users/kitation/gists{/gist_id}","starred_url":"https://api.github.com/users/kitation/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kitation/subscriptions","organizations_url":"https://api.github.com/users/kitation/orgs","repos_url":"https://api.github.com/users/kitation/repos","events_url":"https://api.github.com/users/kitation/events{/privacy}","received_events_url":"https://api.github.com/users/kitation/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-20T10:17:47Z","updated_at":"2015-01-20T10:47:25Z","closed_at":null,"body":"I'm using sir-trevor-js 0.4.0 and the 'block:create' event doesn't seem to fire at all.\r\n\r\n```\r\n<html>\r\n<head>\r\n  <script src=\"https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js\"></script>\r\n  <link rel=\"stylesheet\" type=\"text/css\" href=\"bower_components/sir-trevor-js/sir-trevor.css\" media=\"screen\" />\r\n  <link rel=\"stylesheet\" type=\"text/css\" href=\"bower_components/sir-trevor-js/sir-trevor-icons.css\" media=\"screen\" />\r\n  <script src=\"bower_components/sir-trevor-js/sir-trevor.js\"></script>\r\n  <script>\r\n  $(document).ready(function(){\r\n      new SirTrevor.Editor({\r\n          el: $(\"#test\")});\r\n      SirTrevor.EventBus.on('all', function(evt){\r\n        console.log(evt);\r\n      });\r\n  });\r\n\r\n</script>\r\n</head>\r\n<body>\r\n  <form action=\"/\" method=\"post\">\r\n    <textarea id=\"test\"></textarea>\r\n  </form>\r\n</body>\r\n</html>\r\n```\r\n\r\nI have also tried the 0.5.0 beta from master with the same effect. Other events such as 'block:remove' are getting picked up fine."},"comment":{"url":"https://api.github.com/repos/madebymany/sir-trevor-js/issues/comments/70635720","html_url":"https://github.com/madebymany/sir-trevor-js/issues/287#issuecomment-70635720","issue_url":"https://api.github.com/repos/madebymany/sir-trevor-js/issues/287","id":70635720,"user":{"login":"ninjabiscuit","id":242949,"avatar_url":"https://avatars.githubusercontent.com/u/242949?v=3","gravatar_id":"","url":"https://api.github.com/users/ninjabiscuit","html_url":"https://github.com/ninjabiscuit","followers_url":"https://api.github.com/users/ninjabiscuit/followers","following_url":"https://api.github.com/users/ninjabiscuit/following{/other_user}","gists_url":"https://api.github.com/users/ninjabiscuit/gists{/gist_id}","starred_url":"https://api.github.com/users/ninjabiscuit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ninjabiscuit/subscriptions","organizations_url":"https://api.github.com/users/ninjabiscuit/orgs","repos_url":"https://api.github.com/users/ninjabiscuit/repos","events_url":"https://api.github.com/users/ninjabiscuit/events{/privacy}","received_events_url":"https://api.github.com/users/ninjabiscuit/received_events","type":"User","site_admin":false},"created_at":"2015-01-20T10:47:25Z","updated_at":"2015-01-20T10:47:25Z","body":"Thanks for reporting this. I’ll take a look\r\n\r\n-- \r\nAndrew Walker [\"@ninjabiscuit\", \"07886655448\"]\r\nhttp://madebymany.com\r\n\r\nOn 20 January 2015 at 10:17:49, kitation (notifications@github.com) wrote:\r\n\r\nI'm using sir-trevor-js 0.4.0 and the 'block:create' event doesn't seem to fire at all.\r\n\r\n<html>\r\n<head>\r\n  <script src=\"https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js\"></script>\r\n  <link rel=\"stylesheet\" type=\"text/css\" href=\"bower_components/sir-trevor-js/sir-trevor.css\" media=\"screen\" />\r\n  <link rel=\"stylesheet\" type=\"text/css\" href=\"bower_components/sir-trevor-js/sir-trevor-icons.css\" media=\"screen\" />\r\n  <script src=\"bower_components/sir-trevor-js/sir-trevor.js\"></script>\r\n  <script>\r\n  $(document).ready(function(){\r\n      new SirTrevor.Editor({\r\n          el: $(\"#test\")});\r\n      SirTrevor.EventBus.on('all', function(evt){\r\n        console.log(evt);\r\n      });\r\n  });\r\n\r\n</script>\r\n</head>\r\n<body>\r\n  <form action=\"/\" method=\"post\">\r\n    <textarea id=\"test\"></textarea>\r\n  </form>\r\n</body>\r\n</html>\r\n\r\nI have also tried the 0.5.0 beta from master with the same effect. Other events such as 'block:remove' are getting picked up fine.\r\n\r\n—\r\nReply to this email directly or view it on GitHub."}}