{"action":"closed","issue":{"url":"https://api.github.com/repos/basecamp/trix/issues/101","labels_url":"https://api.github.com/repos/basecamp/trix/issues/101/labels{/name}","comments_url":"https://api.github.com/repos/basecamp/trix/issues/101/comments","events_url":"https://api.github.com/repos/basecamp/trix/issues/101/events","html_url":"https://github.com/basecamp/trix/issues/101","id":117695403,"number":101,"title":"The remove button is included in the result HTML (if we currently select the attachment)","user":{"login":"tanin47","id":494417,"avatar_url":"https://avatars.githubusercontent.com/u/494417?v=3","gravatar_id":"","url":"https://api.github.com/users/tanin47","html_url":"https://github.com/tanin47","followers_url":"https://api.github.com/users/tanin47/followers","following_url":"https://api.github.com/users/tanin47/following{/other_user}","gists_url":"https://api.github.com/users/tanin47/gists{/gist_id}","starred_url":"https://api.github.com/users/tanin47/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tanin47/subscriptions","organizations_url":"https://api.github.com/users/tanin47/orgs","repos_url":"https://api.github.com/users/tanin47/repos","events_url":"https://api.github.com/users/tanin47/events{/privacy}","received_events_url":"https://api.github.com/users/tanin47/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-11-18T22:21:20Z","updated_at":"2015-11-21T02:34:25Z","closed_at":"2015-11-21T02:34:25Z","body":"On https://github.com/basecamp/trix/blob/master/src/trix/controllers/attachment_editor_controller.coffee#L36\r\n\r\n```coffeescript\r\nremoveButton = makeElement(tagName: \"a\", textContent: lang.remove, className: classNames.attachment.removeButton, attributes: { href: \"#\", title: lang.remove })\r\n```\r\n\r\nWe should add `trixSerialize: false` to it like below:\r\n\r\n```coffeescript\r\nremoveButton = makeElement(\r\n      tagName: \"a\", \r\n      textContent: lang.remove, \r\n      className: classNames.attachment.removeButton, \r\n      attributes: { href: \"#\", title: lang.remove }\r\n      data:\r\n        trixSerialize: false\r\n    )\r\n```\r\n\r\nSo that the <a> isn't serialised."}}