{"action":"created","issue":{"url":"https://api.github.com/repos/froala/wysiwyg-editor/issues/868","labels_url":"https://api.github.com/repos/froala/wysiwyg-editor/issues/868/labels{/name}","comments_url":"https://api.github.com/repos/froala/wysiwyg-editor/issues/868/comments","events_url":"https://api.github.com/repos/froala/wysiwyg-editor/issues/868/events","html_url":"https://github.com/froala/wysiwyg-editor/issues/868","id":112302358,"number":868,"title":"insertLink plugin toggle problems.","user":{"login":"largeden","id":5575931,"avatar_url":"https://avatars.githubusercontent.com/u/5575931?v=3","gravatar_id":"","url":"https://api.github.com/users/largeden","html_url":"https://github.com/largeden","followers_url":"https://api.github.com/users/largeden/followers","following_url":"https://api.github.com/users/largeden/following{/other_user}","gists_url":"https://api.github.com/users/largeden/gists{/gist_id}","starred_url":"https://api.github.com/users/largeden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/largeden/subscriptions","organizations_url":"https://api.github.com/users/largeden/orgs","repos_url":"https://api.github.com/users/largeden/repos","events_url":"https://api.github.com/users/largeden/events{/privacy}","received_events_url":"https://api.github.com/users/largeden/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-10-20T07:15:28Z","updated_at":"2015-10-21T16:25:43Z","closed_at":"2015-10-20T21:08:26Z","body":"Callback is not working properly in the following code.\r\n\r\nMiss the typing but the cause does not return this.popups.isVisible ('link.insert').\r\n\r\n```javascript\r\n  // Register the font size command.\r\n  $.FroalaEditor.DefineIcon('insertLink', { NAME: 'link' });\r\n  $.FroalaEditor.RegisterShortcut(75, 'insertLink');\r\n  $.FroalaEditor.RegisterCommand('insertLink', {\r\n    title: 'Insert Link',\r\n    undo: false,\r\n    focus: true,\r\n    refreshOnCallback: false,\r\n    popup: true,\r\n    callback: function () {\r\n      if (!this.popups.isVisible('link..insert')) {\r\n        this.link.showInsertPopup();\r\n      }\r\n      else {\r\n        this.popups.hide('link..insert');\r\n      }\r\n    }\r\n  })\r\n```"},"comment":{"url":"https://api.github.com/repos/froala/wysiwyg-editor/issues/comments/149951676","html_url":"https://github.com/froala/wysiwyg-editor/issues/868#issuecomment-149951676","issue_url":"https://api.github.com/repos/froala/wysiwyg-editor/issues/868","id":149951676,"user":{"login":"largeden","id":5575931,"avatar_url":"https://avatars.githubusercontent.com/u/5575931?v=3","gravatar_id":"","url":"https://api.github.com/users/largeden","html_url":"https://github.com/largeden","followers_url":"https://api.github.com/users/largeden/followers","following_url":"https://api.github.com/users/largeden/following{/other_user}","gists_url":"https://api.github.com/users/largeden/gists{/gist_id}","starred_url":"https://api.github.com/users/largeden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/largeden/subscriptions","organizations_url":"https://api.github.com/users/largeden/orgs","repos_url":"https://api.github.com/users/largeden/repos","events_url":"https://api.github.com/users/largeden/events{/privacy}","received_events_url":"https://api.github.com/users/largeden/received_events","type":"User","site_admin":false},"created_at":"2015-10-21T16:25:43Z","updated_at":"2015-10-21T16:25:43Z","body":"@stefanneculai \r\n\r\nGreat! :)"}}