{"action":"created","issue":{"url":"https://api.github.com/repos/orthes/medium-editor-insert-plugin/issues/177","labels_url":"https://api.github.com/repos/orthes/medium-editor-insert-plugin/issues/177/labels{/name}","comments_url":"https://api.github.com/repos/orthes/medium-editor-insert-plugin/issues/177/comments","events_url":"https://api.github.com/repos/orthes/medium-editor-insert-plugin/issues/177/events","html_url":"https://github.com/orthes/medium-editor-insert-plugin/issues/177","id":68938342,"number":177,"title":"v2.0 brainstorming","user":{"login":"orthes","id":312938,"avatar_url":"https://avatars.githubusercontent.com/u/312938?v=3","gravatar_id":"","url":"https://api.github.com/users/orthes","html_url":"https://github.com/orthes","followers_url":"https://api.github.com/users/orthes/followers","following_url":"https://api.github.com/users/orthes/following{/other_user}","gists_url":"https://api.github.com/users/orthes/gists{/gist_id}","starred_url":"https://api.github.com/users/orthes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orthes/subscriptions","organizations_url":"https://api.github.com/users/orthes/orgs","repos_url":"https://api.github.com/users/orthes/repos","events_url":"https://api.github.com/users/orthes/events{/privacy}","received_events_url":"https://api.github.com/users/orthes/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/orthes/medium-editor-insert-plugin/labels/brainstorming","name":"brainstorming","color":"eb6420"},{"url":"https://api.github.com/repos/orthes/medium-editor-insert-plugin/labels/v2.0","name":"v2.0","color":"006b75"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-16T14:39:12Z","updated_at":"2015-04-16T14:45:35Z","closed_at":null,"body":"This is just an issue for brainstorming what v2.0 might look like.\r\n\r\nVersion v1.0 added a lot of new dependencies: handlebars, jquery-sortable, blueimp-file-upload (which has a few dependencies on its own). Including the plugin to your HTML now unfortunately looks like this:\r\n\r\n```html\r\n<!-- CSS -->\r\n<link rel=\"stylesheet\" href=\"bower_components/medium-editor/dist/css/medium-editor.min.css\">\r\n<link rel=\"stylesheet\" href=\"bower_components/medium-editor/dist/css/themes/default.css\" id=\"medium-editor-theme\">\r\n<link href=\"http://netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css\" rel=\"stylesheet\">\r\n<link rel=\"stylesheet\" href=\"bower_components/medium-editor-insert-plugin/dist/css/medium-editor-insert-plugin.min.css\">\r\n\r\n<!-- JS -->\r\n<script src=\"bower_components/jquery/dist/jquery.min.js\"></script>\r\n<script src=\"bower_components/medium-editor/dist/js/medium-editor.js\"></script>\r\n<script src=\"bower_components/handlebars/handlebars.runtime.min.js\"></script>\r\n<script src=\"bower_components/jquery-sortable/source/js/jquery-sortable-min.js\"></script>\r\n<script src=\"bower_components/blueimp-file-upload/js/vendor/jquery.ui.widget.js\"></script>\r\n<script src=\"bower_components/blueimp-file-upload/js/jquery.iframe-transport.js\"></script>\r\n<script src=\"bower_components/blueimp-file-upload/js/jquery.fileupload.js\"></script>\r\n<script src=\"bower_components/medium-editor-insert-plugin/dist/js/medium-editor-insert-plugin.min.js\"></script>\r\n```\r\n\r\nSo my major question for v2.0 is: **what dependencies do we really need and what can we handle on our own**. The idea behind v1.0 was to delegate as much responsibilities to other libraries as possible in order to speed up development, but right now I'm not sure it was the best decision. What do you think?\r\n\r\nMaybe we could write our own upload and sortable functions using HTML5.\r\n\r\nBut what with handlebars? I like separation of JS and HTML. Is there a way to compile templates back to JS without a need to require a template engine in frontend? We don't need to use handlebars if there's a better JS template engine.\r\n\r\nLast but not least - jQuery. This plugin started as a jQuery plugin for medium-editor, but I've been asked this question many times - do we really need jQuery if the plugin itself doesn't? Is there really a major advantage in using jQuery?\r\n\r\nI started thinking about v2.0 only recently and the first thing that came to my mind were dependencies. What is your experience with the plugin? Do you want to get rid of dependencies, or you don't mind them at all? Or you may have another ideas for v2.0. Please, share your thoughts here.\r\n\r\n/cc @ai @Jaza @j0k3r @nleush @vexus2 @KELiON @fbessadok @zh-daniel-huang @OmniaGM @BurnHavoc @brenfrow @enzoz @jonathonsim @tasarsu @Siron @olleicua @miloshadzic @flamerohr @merqurio @inssein @indrasantosa @iparamonau @jbellsey @maxkirchoff @scashin133 @bjrenfrow"},"comment":{"url":"https://api.github.com/repos/orthes/medium-editor-insert-plugin/issues/comments/93752582","html_url":"https://github.com/orthes/medium-editor-insert-plugin/issues/177#issuecomment-93752582","issue_url":"https://api.github.com/repos/orthes/medium-editor-insert-plugin/issues/177","id":93752582,"user":{"login":"merqurio","id":1485056,"avatar_url":"https://avatars.githubusercontent.com/u/1485056?v=3","gravatar_id":"","url":"https://api.github.com/users/merqurio","html_url":"https://github.com/merqurio","followers_url":"https://api.github.com/users/merqurio/followers","following_url":"https://api.github.com/users/merqurio/following{/other_user}","gists_url":"https://api.github.com/users/merqurio/gists{/gist_id}","starred_url":"https://api.github.com/users/merqurio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/merqurio/subscriptions","organizations_url":"https://api.github.com/users/merqurio/orgs","repos_url":"https://api.github.com/users/merqurio/repos","events_url":"https://api.github.com/users/merqurio/events{/privacy}","received_events_url":"https://api.github.com/users/merqurio/received_events","type":"User","site_admin":false},"created_at":"2015-04-16T14:45:35Z","updated_at":"2015-04-16T14:45:35Z","body":"I still working on 0.13 due to all those dependencies that were added because I had to heavily modify the upload part (My server needs to be requested for the url to upload something before actually uploading it). \r\n\r\nI'm little bit lost now with all those dependencies :cry: "}}