{"action":"created","issue":{"url":"https://api.github.com/repos/yabwe/medium-editor/issues/881","labels_url":"https://api.github.com/repos/yabwe/medium-editor/issues/881/labels{/name}","comments_url":"https://api.github.com/repos/yabwe/medium-editor/issues/881/comments","events_url":"https://api.github.com/repos/yabwe/medium-editor/issues/881/events","html_url":"https://github.com/yabwe/medium-editor/issues/881","id":117698406,"number":881,"title":"Paste options not working on master","user":{"login":"brazorf","id":3330031,"avatar_url":"https://avatars.githubusercontent.com/u/3330031?v=3","gravatar_id":"","url":"https://api.github.com/users/brazorf","html_url":"https://github.com/brazorf","followers_url":"https://api.github.com/users/brazorf/followers","following_url":"https://api.github.com/users/brazorf/following{/other_user}","gists_url":"https://api.github.com/users/brazorf/gists{/gist_id}","starred_url":"https://api.github.com/users/brazorf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brazorf/subscriptions","organizations_url":"https://api.github.com/users/brazorf/orgs","repos_url":"https://api.github.com/users/brazorf/repos","events_url":"https://api.github.com/users/brazorf/events{/privacy}","received_events_url":"https://api.github.com/users/brazorf/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-11-18T22:37:49Z","updated_at":"2015-11-19T17:00:25Z","closed_at":null,"body":"Code\r\n```javascript\r\nnew MediumEditor(\".editor\", {\r\n\tbuttons: ['italic', 'bold', 'underline', 'anchor', 'unorderedlist', 'quote'],\r\n\tpaste: {\r\n\t\t// This example includes the default options for paste, if nothing is passed this is what it used\r\n\t\tforcePlainText: false,\r\n\t\tcleanPastedHtml: true,\r\n\t\tcleanReplacements: [],\r\n\t\tcleanAttrs: ['id', 'style'],\r\n\t\tcleanTags: ['a', 'br']\r\n\t}\r\n});\r\n```\r\n\r\nExpected behaviour\r\n- [x] not convert into plain text\r\n- [ ] remove id, style attributes\r\n- [ ] remove a, br tags\r\n\r\nOnly the first one seems to behave properly.\r\n\r\nCheck this [plunker here](http://plnkr.co/edit/7YjurUuOr2hExUQuNltq?p=preview)\r\nI didn't find any cdn so i used the latest minified on master.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/yabwe/medium-editor/issues/comments/158118746","html_url":"https://github.com/yabwe/medium-editor/issues/881#issuecomment-158118746","issue_url":"https://api.github.com/repos/yabwe/medium-editor/issues/881","id":158118746,"user":{"login":"nmielnik","id":2444240,"avatar_url":"https://avatars.githubusercontent.com/u/2444240?v=3","gravatar_id":"","url":"https://api.github.com/users/nmielnik","html_url":"https://github.com/nmielnik","followers_url":"https://api.github.com/users/nmielnik/followers","following_url":"https://api.github.com/users/nmielnik/following{/other_user}","gists_url":"https://api.github.com/users/nmielnik/gists{/gist_id}","starred_url":"https://api.github.com/users/nmielnik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nmielnik/subscriptions","organizations_url":"https://api.github.com/users/nmielnik/orgs","repos_url":"https://api.github.com/users/nmielnik/repos","events_url":"https://api.github.com/users/nmielnik/events{/privacy}","received_events_url":"https://api.github.com/users/nmielnik/received_events","type":"User","site_admin":false},"created_at":"2015-11-19T17:00:24Z","updated_at":"2015-11-19T17:00:24Z","body":"@brazorf so I found the issue!\r\n\r\nIt's just a capitalization issue with the `cleanPatedHTML` option that's being passed in in your plunker:\r\n\r\nYou're passing `cleanPastedHtml` but the option is actually `cleanPastedHTML`.  Pretty easy mistake to make, I had to actually debug the code to even figure out that was the problem.\r\n\r\nWhen I fixed that, everything seemed to work as expected, can you give it a shot?"}}