{"action":"created","issue":{"url":"https://api.github.com/repos/liferay/alloy-editor/issues/217","labels_url":"https://api.github.com/repos/liferay/alloy-editor/issues/217/labels{/name}","comments_url":"https://api.github.com/repos/liferay/alloy-editor/issues/217/comments","events_url":"https://api.github.com/repos/liferay/alloy-editor/issues/217/events","html_url":"https://github.com/liferay/alloy-editor/issues/217","id":81487994,"number":217,"title":"Publish on NPM/Bower?","user":{"login":"OtaK","id":1262712,"avatar_url":"https://avatars.githubusercontent.com/u/1262712?v=3","gravatar_id":"","url":"https://api.github.com/users/OtaK","html_url":"https://github.com/OtaK","followers_url":"https://api.github.com/users/OtaK/followers","following_url":"https://api.github.com/users/OtaK/following{/other_user}","gists_url":"https://api.github.com/users/OtaK/gists{/gist_id}","starred_url":"https://api.github.com/users/OtaK/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OtaK/subscriptions","organizations_url":"https://api.github.com/users/OtaK/orgs","repos_url":"https://api.github.com/users/OtaK/repos","events_url":"https://api.github.com/users/OtaK/events{/privacy}","received_events_url":"https://api.github.com/users/OtaK/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/liferay/alloy-editor/labels/Feature%20request","name":"Feature request","color":"5319e7"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/liferay/alloy-editor/milestones/8","html_url":"https://github.com/liferay/alloy-editor/milestones/0.3.1","labels_url":"https://api.github.com/repos/liferay/alloy-editor/milestones/8/labels","id":1141534,"number":8,"title":"0.3.1","description":"","creator":{"login":"ipeychev","id":78014,"avatar_url":"https://avatars.githubusercontent.com/u/78014?v=3","gravatar_id":"","url":"https://api.github.com/users/ipeychev","html_url":"https://github.com/ipeychev","followers_url":"https://api.github.com/users/ipeychev/followers","following_url":"https://api.github.com/users/ipeychev/following{/other_user}","gists_url":"https://api.github.com/users/ipeychev/gists{/gist_id}","starred_url":"https://api.github.com/users/ipeychev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ipeychev/subscriptions","organizations_url":"https://api.github.com/users/ipeychev/orgs","repos_url":"https://api.github.com/users/ipeychev/repos","events_url":"https://api.github.com/users/ipeychev/events{/privacy}","received_events_url":"https://api.github.com/users/ipeychev/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":0,"state":"closed","created_at":"2015-05-31T04:19:31Z","updated_at":"2015-06-23T04:52:49Z","due_on":null,"closed_at":"2015-06-01T09:04:57Z"},"comments":21,"created_at":"2015-05-27T15:11:47Z","updated_at":"2015-08-18T16:36:11Z","closed_at":null,"body":"Is it possible to publish the project on NPM and Bower at least?\r\n\r\nIt would be really great, and benefitting the project in all the ways possible. (SemVer, ease of building into app assets, ease of integration with existing React project, and so on)"},"comment":{"url":"https://api.github.com/repos/liferay/alloy-editor/issues/comments/132269561","html_url":"https://github.com/liferay/alloy-editor/issues/217#issuecomment-132269561","issue_url":"https://api.github.com/repos/liferay/alloy-editor/issues/217","id":132269561,"user":{"login":"ipeychev","id":78014,"avatar_url":"https://avatars.githubusercontent.com/u/78014?v=3","gravatar_id":"","url":"https://api.github.com/users/ipeychev","html_url":"https://github.com/ipeychev","followers_url":"https://api.github.com/users/ipeychev/followers","following_url":"https://api.github.com/users/ipeychev/following{/other_user}","gists_url":"https://api.github.com/users/ipeychev/gists{/gist_id}","starred_url":"https://api.github.com/users/ipeychev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ipeychev/subscriptions","organizations_url":"https://api.github.com/users/ipeychev/orgs","repos_url":"https://api.github.com/users/ipeychev/repos","events_url":"https://api.github.com/users/ipeychev/events{/privacy}","received_events_url":"https://api.github.com/users/ipeychev/received_events","type":"User","site_admin":false},"created_at":"2015-08-18T16:36:11Z","updated_at":"2015-08-18T16:36:11Z","body":"Hey guys,\r\n\r\nI created today a [branch](https://github.com/liferay/alloy-editor/tree/react) where AlloyEditor can be rendered on the server and still to work in the browser. The goal is to see if what I did works for you or more work is needed. Here is an example how this could be used:\r\n\r\n```javascript\r\nvar React = require('react'); // React should be loaded separately for now\r\nvar AlloyEditor = require('./alloy-editor-all').AlloyEditor; // here any of AlloyEditor's files can be required\r\n\r\n// This class will render an element on the server, but in the browser it will create an instance of\r\n// AlloyEditor (when mounted) and it will destroy it when unmounted. \r\nvar AlloyEditorComponent = React.createClass({\r\n\tcomponentDidMount: function() {\r\n\t    this._editor = AlloyEditor.editable(React.findDOMNode(this.refs.editableDiv));\r\n\t},\r\n\r\n\tcomponentWillUnmount: function() {\r\n\t\tthis._editor.destroy();\r\n\t},\r\n\r\n\trender: function(){\r\n\t\treturn React.createElement('div', {\r\n\t\t\tcontentEditable: true,\r\n\t\t\tid: 'myDiv',\r\n\t\t\tref: 'myDiv'\r\n\t\t  }\r\n\t\t);\r\n\t}\r\n});\r\n\r\nmodule.exports = AlloyEditorComponent;\r\n```\r\n\r\n\r\n@growlsworth"}}