{"action":"created","issue":{"url":"https://api.github.com/repos/summernote/angular-summernote/issues/79","labels_url":"https://api.github.com/repos/summernote/angular-summernote/issues/79/labels{/name}","comments_url":"https://api.github.com/repos/summernote/angular-summernote/issues/79/comments","events_url":"https://api.github.com/repos/summernote/angular-summernote/issues/79/events","html_url":"https://github.com/summernote/angular-summernote/issues/79","id":110653122,"number":79,"title":"Service provider for default behaviour","user":{"login":"zaalbarxx","id":3301242,"avatar_url":"https://avatars.githubusercontent.com/u/3301242?v=3","gravatar_id":"","url":"https://api.github.com/users/zaalbarxx","html_url":"https://github.com/zaalbarxx","followers_url":"https://api.github.com/users/zaalbarxx/followers","following_url":"https://api.github.com/users/zaalbarxx/following{/other_user}","gists_url":"https://api.github.com/users/zaalbarxx/gists{/gist_id}","starred_url":"https://api.github.com/users/zaalbarxx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zaalbarxx/subscriptions","organizations_url":"https://api.github.com/users/zaalbarxx/orgs","repos_url":"https://api.github.com/users/zaalbarxx/repos","events_url":"https://api.github.com/users/zaalbarxx/events{/privacy}","received_events_url":"https://api.github.com/users/zaalbarxx/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/summernote/angular-summernote/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":{"login":"outsideris","id":390146,"avatar_url":"https://avatars.githubusercontent.com/u/390146?v=3","gravatar_id":"","url":"https://api.github.com/users/outsideris","html_url":"https://github.com/outsideris","followers_url":"https://api.github.com/users/outsideris/followers","following_url":"https://api.github.com/users/outsideris/following{/other_user}","gists_url":"https://api.github.com/users/outsideris/gists{/gist_id}","starred_url":"https://api.github.com/users/outsideris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/outsideris/subscriptions","organizations_url":"https://api.github.com/users/outsideris/orgs","repos_url":"https://api.github.com/users/outsideris/repos","events_url":"https://api.github.com/users/outsideris/events{/privacy}","received_events_url":"https://api.github.com/users/outsideris/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2015-10-09T12:56:32Z","updated_at":"2015-10-13T08:21:38Z","closed_at":null,"body":"Hi!\r\nI think it would be a good idea to create some provider for this module to allow for some default behaviour for all instances of Summernote. For now every time you want to put  some config you have to copy-paste it to every instance, it would be much better to typically merge some settings from provider(mostly thinking about some global handlers for events like for example save or paste) with the ones passed to directive to allow for some global configuration. What do you think ?"},"comment":{"url":"https://api.github.com/repos/summernote/angular-summernote/issues/comments/147643624","html_url":"https://github.com/summernote/angular-summernote/issues/79#issuecomment-147643624","issue_url":"https://api.github.com/repos/summernote/angular-summernote/issues/79","id":147643624,"user":{"login":"zaalbarxx","id":3301242,"avatar_url":"https://avatars.githubusercontent.com/u/3301242?v=3","gravatar_id":"","url":"https://api.github.com/users/zaalbarxx","html_url":"https://github.com/zaalbarxx","followers_url":"https://api.github.com/users/zaalbarxx/followers","following_url":"https://api.github.com/users/zaalbarxx/following{/other_user}","gists_url":"https://api.github.com/users/zaalbarxx/gists{/gist_id}","starred_url":"https://api.github.com/users/zaalbarxx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zaalbarxx/subscriptions","organizations_url":"https://api.github.com/users/zaalbarxx/orgs","repos_url":"https://api.github.com/users/zaalbarxx/repos","events_url":"https://api.github.com/users/zaalbarxx/events{/privacy}","received_events_url":"https://api.github.com/users/zaalbarxx/received_events","type":"User","site_admin":false},"created_at":"2015-10-13T08:21:38Z","updated_at":"2015-10-13T08:21:38Z","body":"Most likely it should expose the way to create some global actions for certain events. In my case it would be just perfect if I would be able to make some action every time the text is pasted into the editor, no matter which one. For now I would have to find every single instance of Summernote in my project and manually add handlers for that. With providers I could just configure it via provider and forget about it."}}