{"action":"created","issue":{"url":"https://api.github.com/repos/bolt/bolt/issues/6192","repository_url":"https://api.github.com/repos/bolt/bolt","labels_url":"https://api.github.com/repos/bolt/bolt/issues/6192/labels{/name}","comments_url":"https://api.github.com/repos/bolt/bolt/issues/6192/comments","events_url":"https://api.github.com/repos/bolt/bolt/issues/6192/events","html_url":"https://github.com/bolt/bolt/pull/6192","id":196769343,"number":6192,"title":"[WIP] Live editor modals","user":{"login":"roggan87","id":2410669,"avatar_url":"https://avatars2.githubusercontent.com/u/2410669?v=3","gravatar_id":"","url":"https://api.github.com/users/roggan87","html_url":"https://github.com/roggan87","followers_url":"https://api.github.com/users/roggan87/followers","following_url":"https://api.github.com/users/roggan87/following{/other_user}","gists_url":"https://api.github.com/users/roggan87/gists{/gist_id}","starred_url":"https://api.github.com/users/roggan87/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roggan87/subscriptions","organizations_url":"https://api.github.com/users/roggan87/orgs","repos_url":"https://api.github.com/users/roggan87/repos","events_url":"https://api.github.com/users/roggan87/events{/privacy}","received_events_url":"https://api.github.com/users/roggan87/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/bolt/bolt/milestones/22","html_url":"https://github.com/bolt/bolt/milestone/22","labels_url":"https://api.github.com/repos/bolt/bolt/milestones/22/labels","id":1940201,"number":22,"title":"Bolt 3.4 - Feature release","description":"","creator":{"login":"GawainLynch","id":1427081,"avatar_url":"https://avatars0.githubusercontent.com/u/1427081?v=3","gravatar_id":"","url":"https://api.github.com/users/GawainLynch","html_url":"https://github.com/GawainLynch","followers_url":"https://api.github.com/users/GawainLynch/followers","following_url":"https://api.github.com/users/GawainLynch/following{/other_user}","gists_url":"https://api.github.com/users/GawainLynch/gists{/gist_id}","starred_url":"https://api.github.com/users/GawainLynch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GawainLynch/subscriptions","organizations_url":"https://api.github.com/users/GawainLynch/orgs","repos_url":"https://api.github.com/users/GawainLynch/repos","events_url":"https://api.github.com/users/GawainLynch/events{/privacy}","received_events_url":"https://api.github.com/users/GawainLynch/received_events","type":"User","site_admin":false},"open_issues":9,"closed_issues":9,"state":"open","created_at":"2016-08-13T11:31:03Z","updated_at":"2017-03-26T17:29:21Z","due_on":"2017-04-17T07:00:00Z","closed_at":null},"comments":6,"created_at":"2016-12-20T20:14:04Z","updated_at":"2017-04-03T18:27:27Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/bolt/bolt/pulls/6192","html_url":"https://github.com/bolt/bolt/pull/6192","diff_url":"https://github.com/bolt/bolt/pull/6192.diff","patch_url":"https://github.com/bolt/bolt/pull/6192.patch"},"body":"I've played around a little with making modal popups out of the fields that are not possible to make  contentEditable, such as images. So when clicking an image in the live editor, a modal popup with only that field would show up. The screenshot below is from the current implementation:\r\n\r\n![image](https://cloud.githubusercontent.com/assets/2410669/21366021/57cb7bdc-c6f8-11e6-9519-90425353a9ed.png)\r\n\r\n\r\nRight now the live editor simply reloads when the content is changed. That's the easiest way to make the content show up correctly. It increases the load time a little bit compared to just updating the affected elements, but it's a more general solution. Of course it's possible to fine tune the behavior for specific field types.\r\n\r\nPersonally I think this modal approach has several pros, since it makes it easier for editors to know which piece of content that is linked to which field, and the appearance is consistent between the regular Edit content section and the live editor, while we keep the duplication of code to a minimum.\r\n\r\nThere are several things to keep working on. For example fields that have several input areas (file, title etc) must be handled better. So far I've almost exclusively looked at the image field type, but theoretically most of the fields should work with some tweaking.\r\n\r\nBefore I continue and hack on this I'd like to know what you guys think, is this a preferred route forward? Are there better ways to implement/accomplish this kind of functionality?"},"comment":{"url":"https://api.github.com/repos/bolt/bolt/issues/comments/291230900","html_url":"https://github.com/bolt/bolt/pull/6192#issuecomment-291230900","issue_url":"https://api.github.com/repos/bolt/bolt/issues/6192","id":291230900,"user":{"login":"roggan87","id":2410669,"avatar_url":"https://avatars2.githubusercontent.com/u/2410669?v=3","gravatar_id":"","url":"https://api.github.com/users/roggan87","html_url":"https://github.com/roggan87","followers_url":"https://api.github.com/users/roggan87/followers","following_url":"https://api.github.com/users/roggan87/following{/other_user}","gists_url":"https://api.github.com/users/roggan87/gists{/gist_id}","starred_url":"https://api.github.com/users/roggan87/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roggan87/subscriptions","organizations_url":"https://api.github.com/users/roggan87/orgs","repos_url":"https://api.github.com/users/roggan87/repos","events_url":"https://api.github.com/users/roggan87/events{/privacy}","received_events_url":"https://api.github.com/users/roggan87/received_events","type":"User","site_admin":false},"created_at":"2017-04-03T18:27:27Z","updated_at":"2017-04-03T18:27:27Z","body":"Hey @bobdenotter! I'm not sure what the loose ends are and what way to best tackle them. I guess I'm waiting for someone to review and test the current implementation to see if we need any more tweaking."}}
{"actor":{"display_login":"roggan87"}}