{"action":"created","issue":{"url":"https://api.github.com/repos/pojome/elementor/issues/4941","repository_url":"https://api.github.com/repos/pojome/elementor","labels_url":"https://api.github.com/repos/pojome/elementor/issues/4941/labels{/name}","comments_url":"https://api.github.com/repos/pojome/elementor/issues/4941/comments","events_url":"https://api.github.com/repos/pojome/elementor/issues/4941/events","html_url":"https://github.com/pojome/elementor/issues/4941","id":337967873,"node_id":"MDU6SXNzdWUzMzc5Njc4NzM=","number":4941,"title":"Setting editor control values through javascript","user":{"login":"springfirenator","id":11599404,"node_id":"MDQ6VXNlcjExNTk5NDA0","avatar_url":"https://avatars0.githubusercontent.com/u/11599404?v=4","gravatar_id":"","url":"https://api.github.com/users/springfirenator","html_url":"https://github.com/springfirenator","followers_url":"https://api.github.com/users/springfirenator/followers","following_url":"https://api.github.com/users/springfirenator/following{/other_user}","gists_url":"https://api.github.com/users/springfirenator/gists{/gist_id}","starred_url":"https://api.github.com/users/springfirenator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/springfirenator/subscriptions","organizations_url":"https://api.github.com/users/springfirenator/orgs","repos_url":"https://api.github.com/users/springfirenator/repos","events_url":"https://api.github.com/users/springfirenator/events{/privacy}","received_events_url":"https://api.github.com/users/springfirenator/received_events","type":"User","site_admin":false},"labels":[{"id":384739896,"node_id":"MDU6TGFiZWwzODQ3Mzk4OTY=","url":"https://api.github.com/repos/pojome/elementor/labels/request/enhancement","name":"request/enhancement","color":"5319e7","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-07-03T16:17:13Z","updated_at":"2018-07-04T13:02:10Z","closed_at":null,"author_association":"NONE","body":"We're a creating a custom functionality where we should set values to different controls in the editor panel. So far, we could change the underlying model like this:\r\n\r\n```javascript\r\nelementor.hooks.addAction( 'panel/open_editor/widget', function( panel, model, view ) {\r\n    model.setSetting('text_field', 'sample text');\r\n});\r\n```\r\n\r\nThe widget reflects the updated values.\r\n\r\nHowever, in the editor panel, this works for basic controls like text box. For others, like choose control, the radio button doesn't visually switch to updated value. We need a way to update both view and model combined."},"comment":{"url":"https://api.github.com/repos/pojome/elementor/issues/comments/402472675","html_url":"https://github.com/pojome/elementor/issues/4941#issuecomment-402472675","issue_url":"https://api.github.com/repos/pojome/elementor/issues/4941","id":402472675,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMjQ3MjY3NQ==","user":{"login":"springfirenator","id":11599404,"node_id":"MDQ6VXNlcjExNTk5NDA0","avatar_url":"https://avatars0.githubusercontent.com/u/11599404?v=4","gravatar_id":"","url":"https://api.github.com/users/springfirenator","html_url":"https://github.com/springfirenator","followers_url":"https://api.github.com/users/springfirenator/followers","following_url":"https://api.github.com/users/springfirenator/following{/other_user}","gists_url":"https://api.github.com/users/springfirenator/gists{/gist_id}","starred_url":"https://api.github.com/users/springfirenator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/springfirenator/subscriptions","organizations_url":"https://api.github.com/users/springfirenator/orgs","repos_url":"https://api.github.com/users/springfirenator/repos","events_url":"https://api.github.com/users/springfirenator/events{/privacy}","received_events_url":"https://api.github.com/users/springfirenator/received_events","type":"User","site_admin":false},"created_at":"2018-07-04T13:02:10Z","updated_at":"2018-07-04T13:02:10Z","author_association":"NONE","body":"Thanks, so is there any workaround for this? Perhaps calling applySavedValue in the hook works?"}}
{"actor":{"display_login":"springfirenator"}}