{"action":"created","issue":{"url":"https://api.github.com/repos/instructure-react/react-tinymce/issues/41","repository_url":"https://api.github.com/repos/instructure-react/react-tinymce","labels_url":"https://api.github.com/repos/instructure-react/react-tinymce/issues/41/labels{/name}","comments_url":"https://api.github.com/repos/instructure-react/react-tinymce/issues/41/comments","events_url":"https://api.github.com/repos/instructure-react/react-tinymce/issues/41/events","html_url":"https://github.com/instructure-react/react-tinymce/issues/41","id":172130218,"number":41,"title":"This is not \"Controlled Component\" as most of react developers expect to be","user":{"login":"olessavluk","id":1577804,"avatar_url":"https://avatars.githubusercontent.com/u/1577804?v=3","gravatar_id":"","url":"https://api.github.com/users/olessavluk","html_url":"https://github.com/olessavluk","followers_url":"https://api.github.com/users/olessavluk/followers","following_url":"https://api.github.com/users/olessavluk/following{/other_user}","gists_url":"https://api.github.com/users/olessavluk/gists{/gist_id}","starred_url":"https://api.github.com/users/olessavluk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olessavluk/subscriptions","organizations_url":"https://api.github.com/users/olessavluk/orgs","repos_url":"https://api.github.com/users/olessavluk/repos","events_url":"https://api.github.com/users/olessavluk/events{/privacy}","received_events_url":"https://api.github.com/users/olessavluk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-19T13:23:09Z","updated_at":"2016-08-22T14:20:13Z","closed_at":null,"body":"From official React [documentation](https://facebook.github.io/react/docs/forms.html#controlled-components):\r\n\r\n> A Controlled component does not maintain its own internal state; the component renders purely based on props.\r\n\r\nThis is how I expected `react-tinymce` to work, but it is not. This is caused a lot of frustration for me and for other people too:\r\n - [onChange not fired often enough](https://github.com/instructure-react/react-tinymce/issues/10)\r\n - [Demo output only updates after click, why?](https://github.com/instructure-react/react-tinymce/issues/20)\r\n - [TinyMCE does not rerender when content property changes](https://github.com/instructure-react/react-tinymce/issues/21)\r\n - [Fix issues with updating props](https://github.com/instructure-react/react-tinymce/pull/23)\r\n\r\nAs I understand there is no way to make this component act the same as \"controlled component\" due to tinyMCE nature, only \"hacky\" solutions as update state by timeout and so on ?\r\n\r\nSo I think it is important to highlight this issue in readme to prevent people from making typical mistakes ?"},"comment":{"url":"https://api.github.com/repos/instructure-react/react-tinymce/issues/comments/241427786","html_url":"https://github.com/instructure-react/react-tinymce/issues/41#issuecomment-241427786","issue_url":"https://api.github.com/repos/instructure-react/react-tinymce/issues/41","id":241427786,"user":{"login":"brentburg","id":225624,"avatar_url":"https://avatars.githubusercontent.com/u/225624?v=3","gravatar_id":"","url":"https://api.github.com/users/brentburg","html_url":"https://github.com/brentburg","followers_url":"https://api.github.com/users/brentburg/followers","following_url":"https://api.github.com/users/brentburg/following{/other_user}","gists_url":"https://api.github.com/users/brentburg/gists{/gist_id}","starred_url":"https://api.github.com/users/brentburg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brentburg/subscriptions","organizations_url":"https://api.github.com/users/brentburg/orgs","repos_url":"https://api.github.com/users/brentburg/repos","events_url":"https://api.github.com/users/brentburg/events{/privacy}","received_events_url":"https://api.github.com/users/brentburg/received_events","type":"User","site_admin":false},"created_at":"2016-08-22T14:20:13Z","updated_at":"2016-08-22T14:20:13Z","body":"I agree this component needs some work. I have run in to several of these issues myself. I have access to contribute but haven't had time to dedicate to it. I will see what we can do about taking care of some of these issues. I am sorry for the frustration."}}
{"actor":{"display_login":"brentburg"}}