{"action":"created","issue":{"url":"https://api.github.com/repos/fraywing/textAngular/issues/860","labels_url":"https://api.github.com/repos/fraywing/textAngular/issues/860/labels{/name}","comments_url":"https://api.github.com/repos/fraywing/textAngular/issues/860/comments","events_url":"https://api.github.com/repos/fraywing/textAngular/issues/860/events","html_url":"https://github.com/fraywing/textAngular/issues/860","id":104704727,"number":860,"title":"insertImage with base64 has no effect in firefox","user":{"login":"vincentcialdella","id":10708088,"avatar_url":"https://avatars.githubusercontent.com/u/10708088?v=3","gravatar_id":"","url":"https://api.github.com/users/vincentcialdella","html_url":"https://github.com/vincentcialdella","followers_url":"https://api.github.com/users/vincentcialdella/followers","following_url":"https://api.github.com/users/vincentcialdella/following{/other_user}","gists_url":"https://api.github.com/users/vincentcialdella/gists{/gist_id}","starred_url":"https://api.github.com/users/vincentcialdella/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vincentcialdella/subscriptions","organizations_url":"https://api.github.com/users/vincentcialdella/orgs","repos_url":"https://api.github.com/users/vincentcialdella/repos","events_url":"https://api.github.com/users/vincentcialdella/events{/privacy}","received_events_url":"https://api.github.com/users/vincentcialdella/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-09-03T14:15:04Z","updated_at":"2015-09-09T23:44:53Z","closed_at":null,"body":"Hi,\r\n\r\nI would like to insert an image containing a base64 source.\r\nI have a bootstrap modal that still returns me this base64. This action is working in IE and chrome but fails in firefox (no content is added). The problem does not seem to come from the base64 Since this same base64 when hardcoded works for all other browsers.\r\n\r\nI provide my code:  \r\n\r\n    $provide.decorator('taOptions', ['$modal', 'taRegisterTool', '$delegate', function ($modal,    taRegisterTool, taOptions) {    \r\n          taRegisterTool('insertFromClipboard', {\r\n                iconclass: \"fa fa-files-o\",\r\n                tooltiptext: 'copy from clipboard',\r\n                action: function (deferred, restoreSelection) {\r\n                    var editor = this.$editor;\r\n\r\n                    var modalInstance = $modal.open({\r\n                        templateUrl: 'app/views/assessmentcreator/pasteFromClipboard.html',\r\n                        controller: 'CtrlPasteFromClipboard',\r\n                        backdrop: 'static',\r\n                        keyboard: false\r\n                    });\r\n\r\n                    modalInstance.result.then(function (base64) {\r\n                        restoreSelection();\r\n                        editor().wrapSelection('insertImage', base64, true);\r\n                        deferred.resolve();\r\n                    });\r\n                    return false;\r\n                }\r\n            });\r\n\r\n            taOptions.toolbar[2].push('insertFromClipboard');\r\n\r\n      return taOptions;\r\n    }]);\r\n\r\nWhat is strange is that the same code for another button / action returning me a base64 is working (registered in another taRegisterTool function)(only name and icon differ)."},"comment":{"url":"https://api.github.com/repos/fraywing/textAngular/issues/comments/139074310","html_url":"https://github.com/fraywing/textAngular/issues/860#issuecomment-139074310","issue_url":"https://api.github.com/repos/fraywing/textAngular/issues/860","id":139074310,"user":{"login":"pbassut","id":1500037,"avatar_url":"https://avatars.githubusercontent.com/u/1500037?v=3","gravatar_id":"","url":"https://api.github.com/users/pbassut","html_url":"https://github.com/pbassut","followers_url":"https://api.github.com/users/pbassut/followers","following_url":"https://api.github.com/users/pbassut/following{/other_user}","gists_url":"https://api.github.com/users/pbassut/gists{/gist_id}","starred_url":"https://api.github.com/users/pbassut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pbassut/subscriptions","organizations_url":"https://api.github.com/users/pbassut/orgs","repos_url":"https://api.github.com/users/pbassut/repos","events_url":"https://api.github.com/users/pbassut/events{/privacy}","received_events_url":"https://api.github.com/users/pbassut/received_events","type":"User","site_admin":false},"created_at":"2015-09-09T23:44:53Z","updated_at":"2015-09-09T23:44:53Z","body":"Could you set up a plunkr so I can see what you might be doing wrong? This should work fine"}}