{"action":"created","issue":{"url":"https://api.github.com/repos/stevebauman/purify/issues/14","repository_url":"https://api.github.com/repos/stevebauman/purify","labels_url":"https://api.github.com/repos/stevebauman/purify/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/stevebauman/purify/issues/14/comments","events_url":"https://api.github.com/repos/stevebauman/purify/issues/14/events","html_url":"https://github.com/stevebauman/purify/issues/14","id":321195007,"node_id":"MDU6SXNzdWUzMjExOTUwMDc=","number":14,"title":"Getting target=\"_blank\" to work for links","user":{"login":"TheBigK","id":9932882,"node_id":"MDQ6VXNlcjk5MzI4ODI=","avatar_url":"https://avatars2.githubusercontent.com/u/9932882?v=4","gravatar_id":"","url":"https://api.github.com/users/TheBigK","html_url":"https://github.com/TheBigK","followers_url":"https://api.github.com/users/TheBigK/followers","following_url":"https://api.github.com/users/TheBigK/following{/other_user}","gists_url":"https://api.github.com/users/TheBigK/gists{/gist_id}","starred_url":"https://api.github.com/users/TheBigK/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheBigK/subscriptions","organizations_url":"https://api.github.com/users/TheBigK/orgs","repos_url":"https://api.github.com/users/TheBigK/repos","events_url":"https://api.github.com/users/TheBigK/events{/privacy}","received_events_url":"https://api.github.com/users/TheBigK/received_events","type":"User","site_admin":false},"labels":[{"id":208437787,"node_id":"MDU6TGFiZWwyMDg0Mzc3ODc=","url":"https://api.github.com/repos/stevebauman/purify/labels/question","name":"question","color":"cc317c","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-08T13:50:17Z","updated_at":"2018-07-19T17:50:57Z","closed_at":"2018-07-19T17:50:57Z","author_association":"NONE","body":"Steve,\r\n\r\nI'm trying hard to get target=\"_blank\" working in my links. I've tried -\r\n\r\n`'Attr.AllowedFrameTargets' => ['_blank'],` and\r\n       `'HTML.Allowed' => 'a[href|target|rel]',`\r\n\r\n\r\nbut it still throws message that \"Attribute 'target' in element 'a' not supported (for information on implementing this, see the support forums) \",\r\n\r\nWould really appreciate if you could suggest a way to make this work. I've spent at least 4 hours on this, but without success. "},"comment":{"url":"https://api.github.com/repos/stevebauman/purify/issues/comments/406360870","html_url":"https://github.com/stevebauman/purify/issues/14#issuecomment-406360870","issue_url":"https://api.github.com/repos/stevebauman/purify/issues/14","id":406360870,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNjM2MDg3MA==","user":{"login":"stevebauman","id":6421846,"node_id":"MDQ6VXNlcjY0MjE4NDY=","avatar_url":"https://avatars3.githubusercontent.com/u/6421846?v=4","gravatar_id":"","url":"https://api.github.com/users/stevebauman","html_url":"https://github.com/stevebauman","followers_url":"https://api.github.com/users/stevebauman/followers","following_url":"https://api.github.com/users/stevebauman/following{/other_user}","gists_url":"https://api.github.com/users/stevebauman/gists{/gist_id}","starred_url":"https://api.github.com/users/stevebauman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevebauman/subscriptions","organizations_url":"https://api.github.com/users/stevebauman/orgs","repos_url":"https://api.github.com/users/stevebauman/repos","events_url":"https://api.github.com/users/stevebauman/events{/privacy}","received_events_url":"https://api.github.com/users/stevebauman/received_events","type":"User","site_admin":false},"created_at":"2018-07-19T17:50:57Z","updated_at":"2018-07-19T17:50:57Z","author_association":"OWNER","body":"Hi @TheBigK,\r\n\r\nYou'll need to add that attribute to your purifier definition as shown in the example in the readme for compatibility with the trix editor:\r\n\r\nhttps://github.com/stevebauman/purify#custom-configuration-rules\r\n\r\n```php\r\n$def->addAttribute('a', 'target', 'Text');\r\n```"}}
{"actor":{"display_login":"stevebauman"}}