{"action":"opened","issue":{"url":"https://api.github.com/repos/nilobarp/summernote-ext-emoji/issues/9","repository_url":"https://api.github.com/repos/nilobarp/summernote-ext-emoji","labels_url":"https://api.github.com/repos/nilobarp/summernote-ext-emoji/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/nilobarp/summernote-ext-emoji/issues/9/comments","events_url":"https://api.github.com/repos/nilobarp/summernote-ext-emoji/issues/9/events","html_url":"https://github.com/nilobarp/summernote-ext-emoji/issues/9","id":372819548,"node_id":"MDU6SXNzdWUzNzI4MTk1NDg=","number":9,"title":"Two JS files: One generates error, one does nothing.","user":{"login":"AngelOfTerror","id":19346329,"node_id":"MDQ6VXNlcjE5MzQ2MzI5","avatar_url":"https://avatars1.githubusercontent.com/u/19346329?v=4","gravatar_id":"","url":"https://api.github.com/users/AngelOfTerror","html_url":"https://github.com/AngelOfTerror","followers_url":"https://api.github.com/users/AngelOfTerror/followers","following_url":"https://api.github.com/users/AngelOfTerror/following{/other_user}","gists_url":"https://api.github.com/users/AngelOfTerror/gists{/gist_id}","starred_url":"https://api.github.com/users/AngelOfTerror/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AngelOfTerror/subscriptions","organizations_url":"https://api.github.com/users/AngelOfTerror/orgs","repos_url":"https://api.github.com/users/AngelOfTerror/repos","events_url":"https://api.github.com/users/AngelOfTerror/events{/privacy}","received_events_url":"https://api.github.com/users/AngelOfTerror/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-23T05:54:06Z","updated_at":"2018-10-23T05:54:06Z","closed_at":null,"author_association":"NONE","body":"Good morning,\r\n\r\nIn theory, this is a very nice plugin. But I can't seem to get it to work. \r\n\r\nUsing the \"summernote-ext-emoji-min.js\" I get an error in Google Chrome and no button appears.\r\n```\r\nsummernote-ext-emoji-min.js:5 Uncaught TypeError: Cannot read property 'getTemplate' of undefined\r\n    at summernote-ext-emoji-min.js:5\r\n    at summernote-ext-emoji-min.js:5\r\n    at summernote-ext-emoji-min.js:5\r\n```\r\n\r\nUsing the \"summernote-ext-emoji.js\" the button appears, but it does not do anything at all. Can not click it.\r\n\r\nIn your ZIP file is also a summernote.js and sumernote.css file. What am I supposed to do with those, the readme file doesn't mention those files?\r\n\r\nThis is what my code looks like, in case it matters;\r\n\r\n```\r\n<link href=\"/bootstrapV331/summernote/dist/summernote.css\" rel=\"stylesheet\">\r\n<script src=\"/bootstrapV331/summernote/dist/summernote.js\"></script>\r\n<script src=\"/bootstrapV331/summernote-ext-emoji-min.js\"></script>\r\n<script>\r\n$(document).ready(function() {\r\n\t$(\"body\").on(\"paste\", function (e) { e.preventDefault(); });\r\n\t\r\n\tdocument.emojiSource = \"/img/summernote-ext-emoji/\"; //relative path to emojis\r\n\r\n\t$(\".summernote\").summernote({\r\n\t\theight: 150,   //set editable areas height\r\n\t\tcodemirror: { // codemirror options\r\n\t\t\ttheme: \\'monokai\\'\r\n\t\t},\r\n\t\ttoolbar: [\r\n\t\t\t// [groupName, [list of button]]\r\n\t\t\t[\"insert\", [\"emoji\"]],\r\n\t\t\t[\"style\", [\"bold\", \"italic\", \"underline\", \"clear\"]],\r\n\t\t\t//[\"fontsize\", [\"fontsize\"]],\r\n\t\t\t[\"color\", [\"color\"]],\r\n\t\t],\r\n\r\n\t\tpopover: {\r\n\t\t\timage: [\r\n\t\t\t],\r\n\t\t},\r\n\t});\r\n\r\n    var nMaxLength = 280; //set the characters length\r\n\t$(\"#remaining\").text(nMaxLength);\r\n    $(\".note-editable\").keydown(function (event) {\r\n        LimitCharacters($(this));\r\n    });\r\n    $(\".note-editable\").keyup(function (event) {\r\n        LimitCharacters($(this));\r\n    });\r\n\r\n    function LimitCharacters(description) {\r\n\t\t$(\"#remaining\").text(nMaxLength - description.text().length);\r\n\t\t\r\n        if (description.text().length >= nMaxLength) {\r\n\t\t\tif (event.keyCode != 8 && event.keyCode != 46 && !(event.keyCode >= 37 && event.keyCode <= 40) ) {\r\n\t\t\t\tevent.preventDefault();\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n        }\r\n    }\r\n});\r\n</script>\r\n\r\n\r\n<div class=\"form-group\">\r\n\t<div class=\"summernote\" id=\"summernote\">\r\n\t</div>\r\n\t<span id=\"remaining\"></span>\r\n</div>\r\n```"}}
{"actor":{"display_login":"AngelOfTerror"}}