{"action":"created","issue":{"url":"https://api.github.com/repos/voidlabs/mosaico/issues/50","repository_url":"https://api.github.com/repos/voidlabs/mosaico","labels_url":"https://api.github.com/repos/voidlabs/mosaico/issues/50/labels{/name}","comments_url":"https://api.github.com/repos/voidlabs/mosaico/issues/50/comments","events_url":"https://api.github.com/repos/voidlabs/mosaico/issues/50/events","html_url":"https://github.com/voidlabs/mosaico/issues/50","id":118720859,"number":50,"title":"generic \"backend\" save/load plugin","user":{"login":"bwl21","id":2022976,"avatar_url":"https://avatars.githubusercontent.com/u/2022976?v=3","gravatar_id":"","url":"https://api.github.com/users/bwl21","html_url":"https://github.com/bwl21","followers_url":"https://api.github.com/users/bwl21/followers","following_url":"https://api.github.com/users/bwl21/following{/other_user}","gists_url":"https://api.github.com/users/bwl21/gists{/gist_id}","starred_url":"https://api.github.com/users/bwl21/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bwl21/subscriptions","organizations_url":"https://api.github.com/users/bwl21/orgs","repos_url":"https://api.github.com/users/bwl21/repos","events_url":"https://api.github.com/users/bwl21/events{/privacy}","received_events_url":"https://api.github.com/users/bwl21/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2015-11-24T22:51:14Z","updated_at":"2016-07-13T01:26:52Z","closed_at":null,"body":"Stefano wrote:\r\n\r\nWe probably can deploy a generic \"backend\" save/load plugin that takes\r\nan url to be invoked at load and another to POST saves, but I don't\r\nknow what is \"generic\" (a single save POST with both the metadata and\r\nthe generated html? 2 different methods to save the metadata and to\r\n\"export\" the generated html?). We'll have to see some people embed\r\nuse-case in order to better understand this and make some better\r\nplugin to help future integration.\r\n\r\n\r\nI open this issue in order to discuss the methods for such a plugin. Here are the initial proposals. I will update the issue from time to time based on the discussion.\r\n\r\n\r\n\r\n# simple version\r\n\r\n* save an email (JSON and html) additional fields: date, time, username \r\n* list available emails\r\n* delete an email\r\n* load an email\r\n\r\n# advance mode\r\n\r\n* save an email with versions\r\n* list versions of an email\r\n* compare versions of an email\r\n* restore earlier version of an email\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/voidlabs/mosaico/issues/comments/232229765","html_url":"https://github.com/voidlabs/mosaico/issues/50#issuecomment-232229765","issue_url":"https://api.github.com/repos/voidlabs/mosaico/issues/50","id":232229765,"user":{"login":"mattghall","id":13107532,"avatar_url":"https://avatars.githubusercontent.com/u/13107532?v=3","gravatar_id":"","url":"https://api.github.com/users/mattghall","html_url":"https://github.com/mattghall","followers_url":"https://api.github.com/users/mattghall/followers","following_url":"https://api.github.com/users/mattghall/following{/other_user}","gists_url":"https://api.github.com/users/mattghall/gists{/gist_id}","starred_url":"https://api.github.com/users/mattghall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattghall/subscriptions","organizations_url":"https://api.github.com/users/mattghall/orgs","repos_url":"https://api.github.com/users/mattghall/repos","events_url":"https://api.github.com/users/mattghall/events{/privacy}","received_events_url":"https://api.github.com/users/mattghall/received_events","type":"User","site_admin":false},"created_at":"2016-07-13T01:26:52Z","updated_at":"2016-07-13T01:26:52Z","body":"@CaptainHypertext correct me if you're wrong, but I think you added an extra `);` in your code. Should be \r\n```\r\nMosaico.init({\r\n    onImageUpload: function() {},\r\n    onSendTest: function() {},\r\n    onSave: function(saveObject) {\r\n        // saveObject could contain metadata, json configuration, and html\r\n\r\n        // My sample callback\r\n        $.post('https://example.com/template/save/42', saveObject)\r\n            .done(function() {\r\n                return true;\r\n            })\r\n            .fail(function(jqXHR, textStatus, error) {\r\n                return false;\r\n            })\r\n        );\r\n    }\r\n}, plugins);\r\n```"}}
{"actor":{"display_login":"mattghall"}}