{"action":"created","issue":{"url":"https://api.github.com/repos/webdeveloperpr/draft-js-custom-styles/issues/3","repository_url":"https://api.github.com/repos/webdeveloperpr/draft-js-custom-styles","labels_url":"https://api.github.com/repos/webdeveloperpr/draft-js-custom-styles/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/webdeveloperpr/draft-js-custom-styles/issues/3/comments","events_url":"https://api.github.com/repos/webdeveloperpr/draft-js-custom-styles/issues/3/events","html_url":"https://github.com/webdeveloperpr/draft-js-custom-styles/issues/3","id":278490496,"number":3,"title":"Toggle style with nothing selected seems not work","user":{"login":"samotoo","id":20150515,"avatar_url":"https://avatars0.githubusercontent.com/u/20150515?v=4","gravatar_id":"","url":"https://api.github.com/users/samotoo","html_url":"https://github.com/samotoo","followers_url":"https://api.github.com/users/samotoo/followers","following_url":"https://api.github.com/users/samotoo/following{/other_user}","gists_url":"https://api.github.com/users/samotoo/gists{/gist_id}","starred_url":"https://api.github.com/users/samotoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samotoo/subscriptions","organizations_url":"https://api.github.com/users/samotoo/orgs","repos_url":"https://api.github.com/users/samotoo/repos","events_url":"https://api.github.com/users/samotoo/events{/privacy}","received_events_url":"https://api.github.com/users/samotoo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-12-01T14:54:58Z","updated_at":"2017-12-02T01:45:58Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\nThank you very much for this wonderful lib.\r\n\r\nI tried to use it to toggle the color. It works great if I have selected some text in the editor, but if I don't select any text, it seems the style cannot be toggled. Is there any solution to resolve this? Or am I doing anything incorrectly?\r\n\r\nThanks."},"comment":{"url":"https://api.github.com/repos/webdeveloperpr/draft-js-custom-styles/issues/comments/348658169","html_url":"https://github.com/webdeveloperpr/draft-js-custom-styles/issues/3#issuecomment-348658169","issue_url":"https://api.github.com/repos/webdeveloperpr/draft-js-custom-styles/issues/3","id":348658169,"user":{"login":"samotoo","id":20150515,"avatar_url":"https://avatars0.githubusercontent.com/u/20150515?v=4","gravatar_id":"","url":"https://api.github.com/users/samotoo","html_url":"https://github.com/samotoo","followers_url":"https://api.github.com/users/samotoo/followers","following_url":"https://api.github.com/users/samotoo/following{/other_user}","gists_url":"https://api.github.com/users/samotoo/gists{/gist_id}","starred_url":"https://api.github.com/users/samotoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samotoo/subscriptions","organizations_url":"https://api.github.com/users/samotoo/orgs","repos_url":"https://api.github.com/users/samotoo/repos","events_url":"https://api.github.com/users/samotoo/events{/privacy}","received_events_url":"https://api.github.com/users/samotoo/received_events","type":"User","site_admin":false},"created_at":"2017-12-02T01:45:58Z","updated_at":"2017-12-02T01:45:58Z","author_association":"NONE","body":"Thanks for the point. I understand your point. However, I tried to define a custom style map and use `RichUtils.toggleInlineStyle` to toggle the style, it just worked even there is no text selection, I mean, the style is applied to the new text I input."}}
{"actor":{"display_login":"samotoo"}}