{"action":"created","issue":{"url":"https://api.github.com/repos/orthes/medium-editor-insert-plugin/issues/402","repository_url":"https://api.github.com/repos/orthes/medium-editor-insert-plugin","labels_url":"https://api.github.com/repos/orthes/medium-editor-insert-plugin/issues/402/labels{/name}","comments_url":"https://api.github.com/repos/orthes/medium-editor-insert-plugin/issues/402/comments","events_url":"https://api.github.com/repos/orthes/medium-editor-insert-plugin/issues/402/events","html_url":"https://github.com/orthes/medium-editor-insert-plugin/issues/402","id":194739800,"number":402,"title":"Laravel Elixir","user":{"login":"mikebronner","id":1791050,"avatar_url":"https://avatars.githubusercontent.com/u/1791050?v=3","gravatar_id":"","url":"https://api.github.com/users/mikebronner","html_url":"https://github.com/mikebronner","followers_url":"https://api.github.com/users/mikebronner/followers","following_url":"https://api.github.com/users/mikebronner/following{/other_user}","gists_url":"https://api.github.com/users/mikebronner/gists{/gist_id}","starred_url":"https://api.github.com/users/mikebronner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikebronner/subscriptions","organizations_url":"https://api.github.com/users/mikebronner/orgs","repos_url":"https://api.github.com/users/mikebronner/repos","events_url":"https://api.github.com/users/mikebronner/events{/privacy}","received_events_url":"https://api.github.com/users/mikebronner/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-10T02:47:41Z","updated_at":"2016-12-10T03:47:56Z","closed_at":"2016-12-10T03:47:56Z","body":"Has anyone been able to get this to work with Laravel Elixir? Here is my gulp file.js:\r\n\r\n```js\r\nvar elixir = require('laravel-elixir');\r\n\r\n/*\r\n |--------------------------------------------------------------------------\r\n | Elixir Asset Management\r\n |--------------------------------------------------------------------------\r\n |\r\n | Elixir provides a clean, fluent API for defining some basic Gulp tasks\r\n | for your Laravel application. By default, we are compiling the Sass\r\n | file for our application, as well as publishing vendor resources.\r\n |\r\n */\r\n\r\nelixir(function (mix) {\r\n    mix.sass('app.scss')\r\n        .webpack('app.js', '', '', {\r\n            module: {\r\n                loaders: [\r\n                    {\r\n                        test: require.resolve(\"blueimp-file-upload\"),\r\n                        loader: \"imports?define=>false\"\r\n                    },\r\n                    {\r\n                        test: require.resolve(\"medium-editor-insert-plugin\"),\r\n                        loader: \"imports?define=>false\"\r\n                    }\r\n                ]\r\n            }\r\n        })\r\n        .copy('node_modules/font-awesome/fonts','public/build/fonts')\r\n        .copy('node_modules/medium-editor-insert-plugin/dist/js/medium-editor-insert-plugin.js','public/build/js')\r\n        .version([\r\n            './public/css/app.css',\r\n            './public/js/app.js'\r\n        ]);\r\n});\r\n```\r\n\r\nHere's my package.json:\r\n\r\n```json\r\n{\r\n  \"private\": true,\r\n  \"devDependencies\": {\r\n    \"bootstrap-sass\": \"^3.3.7\",\r\n    \"cropper\": \"^2.3.2\",\r\n    \"font-awesome\": \"^4.7.0\",\r\n    \"gulp\": \"^3.9.1\",\r\n    \"imports-loader\": \"^0.7.0\",\r\n    \"laravel-elixir\": \"^6.0.0-15\",\r\n    \"laravel-elixir-browserify-official\": \"^0.1.3\",\r\n    \"medium-editor\": \"5.22.1\",\r\n    \"medium-editor-insert-plugin\": \"^2.4.0\",\r\n    \"selectize\": \"^0.12.4\"\r\n  }\r\n}\r\n```\r\n\r\nIt builds fine, but when I try to view it in the browser, I get the dreaded error:\r\n\r\n```\r\nTypeError: $('#post-content').mediumInsert is not a function. (In '$('#post-content').mediumInsert', '$('#post-content').mediumInsert' is undefined)\r\n```\r\n\r\nAny thoughts on what I need to do to fix this?\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/orthes/medium-editor-insert-plugin/issues/comments/266176713","html_url":"https://github.com/orthes/medium-editor-insert-plugin/issues/402#issuecomment-266176713","issue_url":"https://api.github.com/repos/orthes/medium-editor-insert-plugin/issues/402","id":266176713,"user":{"login":"mikebronner","id":1791050,"avatar_url":"https://avatars.githubusercontent.com/u/1791050?v=3","gravatar_id":"","url":"https://api.github.com/users/mikebronner","html_url":"https://github.com/mikebronner","followers_url":"https://api.github.com/users/mikebronner/followers","following_url":"https://api.github.com/users/mikebronner/following{/other_user}","gists_url":"https://api.github.com/users/mikebronner/gists{/gist_id}","starred_url":"https://api.github.com/users/mikebronner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikebronner/subscriptions","organizations_url":"https://api.github.com/users/mikebronner/orgs","repos_url":"https://api.github.com/users/mikebronner/repos","events_url":"https://api.github.com/users/mikebronner/events{/privacy}","received_events_url":"https://api.github.com/users/mikebronner/received_events","type":"User","site_admin":false},"created_at":"2016-12-10T03:47:56Z","updated_at":"2016-12-10T03:47:56Z","body":"I got it to work finally. In the end it was a secondary inclusion on query in a nested template file that caused the problem."}}
{"actor":{"display_login":"mikebronner"}}