{"action":"created","issue":{"url":"https://api.github.com/repos/hanhdt/vue-trix/issues/4","repository_url":"https://api.github.com/repos/hanhdt/vue-trix","labels_url":"https://api.github.com/repos/hanhdt/vue-trix/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/hanhdt/vue-trix/issues/4/comments","events_url":"https://api.github.com/repos/hanhdt/vue-trix/issues/4/events","html_url":"https://github.com/hanhdt/vue-trix/issues/4","id":390896854,"node_id":"MDU6SXNzdWUzOTA4OTY4NTQ=","number":4,"title":"Images","user":{"login":"Timibadass","id":25494586,"node_id":"MDQ6VXNlcjI1NDk0NTg2","avatar_url":"https://avatars0.githubusercontent.com/u/25494586?v=4","gravatar_id":"","url":"https://api.github.com/users/Timibadass","html_url":"https://github.com/Timibadass","followers_url":"https://api.github.com/users/Timibadass/followers","following_url":"https://api.github.com/users/Timibadass/following{/other_user}","gists_url":"https://api.github.com/users/Timibadass/gists{/gist_id}","starred_url":"https://api.github.com/users/Timibadass/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Timibadass/subscriptions","organizations_url":"https://api.github.com/users/Timibadass/orgs","repos_url":"https://api.github.com/users/Timibadass/repos","events_url":"https://api.github.com/users/Timibadass/events{/privacy}","received_events_url":"https://api.github.com/users/Timibadass/received_events","type":"User","site_admin":false},"labels":[{"id":1047466419,"node_id":"MDU6TGFiZWwxMDQ3NDY2NDE5","url":"https://api.github.com/repos/hanhdt/vue-trix/labels/help%20wanted","name":"help wanted","color":"008672","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-12-13T22:58:02Z","updated_at":"2018-12-14T00:57:39Z","closed_at":null,"author_association":"NONE","body":"Hi!, Is it possible to upload/ add Images with the text editor? If yes, how?"},"comment":{"url":"https://api.github.com/repos/hanhdt/vue-trix/issues/comments/447175857","html_url":"https://github.com/hanhdt/vue-trix/issues/4#issuecomment-447175857","issue_url":"https://api.github.com/repos/hanhdt/vue-trix/issues/4","id":447175857,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NzE3NTg1Nw==","user":{"login":"hanhdt","id":3414312,"node_id":"MDQ6VXNlcjM0MTQzMTI=","avatar_url":"https://avatars1.githubusercontent.com/u/3414312?v=4","gravatar_id":"","url":"https://api.github.com/users/hanhdt","html_url":"https://github.com/hanhdt","followers_url":"https://api.github.com/users/hanhdt/followers","following_url":"https://api.github.com/users/hanhdt/following{/other_user}","gists_url":"https://api.github.com/users/hanhdt/gists{/gist_id}","starred_url":"https://api.github.com/users/hanhdt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hanhdt/subscriptions","organizations_url":"https://api.github.com/users/hanhdt/orgs","repos_url":"https://api.github.com/users/hanhdt/repos","events_url":"https://api.github.com/users/hanhdt/events{/privacy}","received_events_url":"https://api.github.com/users/hanhdt/received_events","type":"User","site_admin":false},"created_at":"2018-12-14T00:57:39Z","updated_at":"2018-12-14T00:57:39Z","author_association":"OWNER","body":"Hi,\r\nYes, you can handle attachments by binding events with latest package version.\r\n\r\nFor example, `trix-attachment-add` fires after an attachment is added to the document. You should store this file remotely and set the attachment’s URL attribute.\r\n\r\nIn component file (`*.vue`), you can do something like:\r\n```\r\n<template>\r\n  <VueTrix\r\n    v-model=\"content1\"\r\n    @trix-attachment-add=\"handleAttachmentAdd\"\r\n  />\r\n</template>\r\n\r\nexport default {\r\n  ...\r\n  methods: {\r\n   handleAttachmentAdd (file) {\r\n      // Save this file remotely\r\n    }\r\n  }\r\n}\r\n```\r\nThanks.\r\n"}}
{"actor":{"display_login":"hanhdt"}}