{"action":"created","issue":{"url":"https://api.github.com/repos/froala/wysiwyg-editor/issues/560","labels_url":"https://api.github.com/repos/froala/wysiwyg-editor/issues/560/labels{/name}","comments_url":"https://api.github.com/repos/froala/wysiwyg-editor/issues/560/comments","events_url":"https://api.github.com/repos/froala/wysiwyg-editor/issues/560/events","html_url":"https://github.com/froala/wysiwyg-editor/issues/560","id":77659375,"number":560,"title":"When using a formatBlock, the \"Clear formatting\" does nothing.","user":{"login":"tmikaeld","id":907195,"avatar_url":"https://avatars.githubusercontent.com/u/907195?v=3","gravatar_id":"","url":"https://api.github.com/users/tmikaeld","html_url":"https://github.com/tmikaeld","followers_url":"https://api.github.com/users/tmikaeld/followers","following_url":"https://api.github.com/users/tmikaeld/following{/other_user}","gists_url":"https://api.github.com/users/tmikaeld/gists{/gist_id}","starred_url":"https://api.github.com/users/tmikaeld/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmikaeld/subscriptions","organizations_url":"https://api.github.com/users/tmikaeld/orgs","repos_url":"https://api.github.com/users/tmikaeld/repos","events_url":"https://api.github.com/users/tmikaeld/events{/privacy}","received_events_url":"https://api.github.com/users/tmikaeld/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-18T13:37:15Z","updated_at":"2015-05-18T19:09:44Z","closed_at":"2015-05-18T13:41:53Z","body":"Is that by design or a bug?"},"comment":{"url":"https://api.github.com/repos/froala/wysiwyg-editor/issues/comments/103178771","html_url":"https://github.com/froala/wysiwyg-editor/issues/560#issuecomment-103178771","issue_url":"https://api.github.com/repos/froala/wysiwyg-editor/issues/560","id":103178771,"user":{"login":"tmikaeld","id":907195,"avatar_url":"https://avatars.githubusercontent.com/u/907195?v=3","gravatar_id":"","url":"https://api.github.com/users/tmikaeld","html_url":"https://github.com/tmikaeld","followers_url":"https://api.github.com/users/tmikaeld/followers","following_url":"https://api.github.com/users/tmikaeld/following{/other_user}","gists_url":"https://api.github.com/users/tmikaeld/gists{/gist_id}","starred_url":"https://api.github.com/users/tmikaeld/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmikaeld/subscriptions","organizations_url":"https://api.github.com/users/tmikaeld/orgs","repos_url":"https://api.github.com/users/tmikaeld/repos","events_url":"https://api.github.com/users/tmikaeld/events{/privacy}","received_events_url":"https://api.github.com/users/tmikaeld/received_events","type":"User","site_admin":false},"created_at":"2015-05-18T19:09:44Z","updated_at":"2015-05-18T19:09:44Z","body":"If anyone else finds this and want a custom button that removes all formatting but leaves text:\r\n\r\nAdd this as an option:\r\n```\r\ncustomButtons: {\r\n\t\t\t\t//Remove all formatting.\r\n\t\t\t\tclear: {\r\n\t\t\t\t  title: 'Clear all formatting',\r\n\t\t\t\t  icon: {\r\n\t\t\t\t    type: 'font',\r\n\t\t\t\t    value: 'fa fa-filter'\r\n\t\t\t\t  },\r\n\t\t\t\t  callback: function () {\r\n\t\t\t\t    var thisText = this.getText();\r\n\t\t\t\t    this.setHTML(thisText);\r\n\t\t\t\t  },\r\n\t\t\t\t  refresh: function () { }\r\n\t\t\t\t}\r\n\t\t}\r\n```"}}