{"action":"created","issue":{"url":"https://api.github.com/repos/draft-js-plugins/draft-js-plugins/issues/359","repository_url":"https://api.github.com/repos/draft-js-plugins/draft-js-plugins","labels_url":"https://api.github.com/repos/draft-js-plugins/draft-js-plugins/issues/359/labels{/name}","comments_url":"https://api.github.com/repos/draft-js-plugins/draft-js-plugins/issues/359/comments","events_url":"https://api.github.com/repos/draft-js-plugins/draft-js-plugins/issues/359/events","html_url":"https://github.com/draft-js-plugins/draft-js-plugins/issues/359","id":165834582,"number":359,"title":"Inconsistency with decorators and EditorState","user":{"login":"Schniz","id":2054772,"avatar_url":"https://avatars.githubusercontent.com/u/2054772?v=3","gravatar_id":"","url":"https://api.github.com/users/Schniz","html_url":"https://github.com/Schniz","followers_url":"https://api.github.com/users/Schniz/followers","following_url":"https://api.github.com/users/Schniz/following{/other_user}","gists_url":"https://api.github.com/users/Schniz/gists{/gist_id}","starred_url":"https://api.github.com/users/Schniz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Schniz/subscriptions","organizations_url":"https://api.github.com/users/Schniz/orgs","repos_url":"https://api.github.com/users/Schniz/repos","events_url":"https://api.github.com/users/Schniz/events{/privacy}","received_events_url":"https://api.github.com/users/Schniz/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/draft-js-plugins/draft-js-plugins/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-07-15T17:07:16Z","updated_at":"2016-07-19T06:42:11Z","closed_at":"2016-07-17T07:13:41Z","body":"Using version `1.1.0`.\r\n\r\nlets say we have this function:\r\n\r\n```js\r\nfunction createState(text) {\r\n  return EditorState.createWithContent(\r\n    ContentState.createFromText(text)\r\n  );\r\n}\r\n```\r\n\r\neach time we create a new `EditorState`, we need to manually set the decorators. Yet, the first state we send gets the decorators from the plugins."},"comment":{"url":"https://api.github.com/repos/draft-js-plugins/draft-js-plugins/issues/comments/233545449","html_url":"https://github.com/draft-js-plugins/draft-js-plugins/issues/359#issuecomment-233545449","issue_url":"https://api.github.com/repos/draft-js-plugins/draft-js-plugins/issues/359","id":233545449,"user":{"login":"nikgraf","id":223045,"avatar_url":"https://avatars.githubusercontent.com/u/223045?v=3","gravatar_id":"","url":"https://api.github.com/users/nikgraf","html_url":"https://github.com/nikgraf","followers_url":"https://api.github.com/users/nikgraf/followers","following_url":"https://api.github.com/users/nikgraf/following{/other_user}","gists_url":"https://api.github.com/users/nikgraf/gists{/gist_id}","starred_url":"https://api.github.com/users/nikgraf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nikgraf/subscriptions","organizations_url":"https://api.github.com/users/nikgraf/orgs","repos_url":"https://api.github.com/users/nikgraf/repos","events_url":"https://api.github.com/users/nikgraf/events{/privacy}","received_events_url":"https://api.github.com/users/nikgraf/received_events","type":"User","site_admin":false},"created_at":"2016-07-19T06:42:11Z","updated_at":"2016-07-19T06:42:11Z","body":"@Schniz that's true, what's the use-case where you want to clean the undo stack?"}}
{"actor":{"display_login":"nikgraf"}}