{"action":"created","issue":{"url":"https://api.github.com/repos/ckeditor/ckeditor5/issues/1397","repository_url":"https://api.github.com/repos/ckeditor/ckeditor5","labels_url":"https://api.github.com/repos/ckeditor/ckeditor5/issues/1397/labels{/name}","comments_url":"https://api.github.com/repos/ckeditor/ckeditor5/issues/1397/comments","events_url":"https://api.github.com/repos/ckeditor/ckeditor5/issues/1397/events","html_url":"https://github.com/ckeditor/ckeditor5/issues/1397","id":388268916,"node_id":"MDU6SXNzdWUzODgyNjg5MTY=","number":1397,"title":"setData doesn't update editor and breaks other JS code","user":{"login":"toxpal","id":19587485,"node_id":"MDQ6VXNlcjE5NTg3NDg1","avatar_url":"https://avatars1.githubusercontent.com/u/19587485?v=4","gravatar_id":"","url":"https://api.github.com/users/toxpal","html_url":"https://github.com/toxpal","followers_url":"https://api.github.com/users/toxpal/followers","following_url":"https://api.github.com/users/toxpal/following{/other_user}","gists_url":"https://api.github.com/users/toxpal/gists{/gist_id}","starred_url":"https://api.github.com/users/toxpal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toxpal/subscriptions","organizations_url":"https://api.github.com/users/toxpal/orgs","repos_url":"https://api.github.com/users/toxpal/repos","events_url":"https://api.github.com/users/toxpal/events{/privacy}","received_events_url":"https://api.github.com/users/toxpal/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-12-06T15:37:34Z","updated_at":"2018-12-06T16:11:24Z","closed_at":"2018-12-06T15:49:59Z","author_association":"NONE","body":"## Is this a bug report or feature request? (choose one)\r\n\r\n🐞 Bug report \r\n\r\n## 💻 Version of CKEditor\r\n\r\n5.11.1.1 Classic\r\n\r\n## 📋 Steps to reproduce\r\n\r\n1. Call **editor.setData('somestring');** after creating editor\r\n\r\n## ✅ Expected result\r\nTextarea should contain 'somestring' now\r\n\r\n## ❎ Actual result\r\nNothing is changed in textarea.\r\nRemaining JavaScript code (if any) on page doesn't even execute.\r\n\r\n## 📃 Other details that might be useful\r\nCreated test code right from documentation ( https://ckeditor.com/docs/ckeditor5/latest/builds/guides/integration/basic-api.html ), without any modifications. It still fails.\r\n\r\nJSFiddle here - https://jsfiddle.net/8ckdefta/\r\n\r\nTested with latest versions of Vivaldi and FireFox, setData function doesn't work (and breaks other JS code from working) in both browsers."},"comment":{"url":"https://api.github.com/repos/ckeditor/ckeditor5/issues/comments/444927304","html_url":"https://github.com/ckeditor/ckeditor5/issues/1397#issuecomment-444927304","issue_url":"https://api.github.com/repos/ckeditor/ckeditor5/issues/1397","id":444927304,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NDkyNzMwNA==","user":{"login":"toxpal","id":19587485,"node_id":"MDQ6VXNlcjE5NTg3NDg1","avatar_url":"https://avatars1.githubusercontent.com/u/19587485?v=4","gravatar_id":"","url":"https://api.github.com/users/toxpal","html_url":"https://github.com/toxpal","followers_url":"https://api.github.com/users/toxpal/followers","following_url":"https://api.github.com/users/toxpal/following{/other_user}","gists_url":"https://api.github.com/users/toxpal/gists{/gist_id}","starred_url":"https://api.github.com/users/toxpal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toxpal/subscriptions","organizations_url":"https://api.github.com/users/toxpal/orgs","repos_url":"https://api.github.com/users/toxpal/repos","events_url":"https://api.github.com/users/toxpal/events{/privacy}","received_events_url":"https://api.github.com/users/toxpal/received_events","type":"User","site_admin":false},"created_at":"2018-12-06T16:11:24Z","updated_at":"2018-12-06T16:11:24Z","author_association":"NONE","body":"Thanks for the explanation, I was going crazy about this all day long.\r\n\r\nSo if I need to update CKeditor content after Ajax call (in other words, I need to set textarea's content to some string returned by Ajax), I'll need to terminate editor and then re-create it after Ajax call?\r\n\r\nBecause if I call only setData() after Ajax call, nothing will happen."}}
{"actor":{"display_login":"toxpal"}}