diff --git a/public/src/modules/composer.js b/public/src/modules/composer.js index 4c22fa1529..c95a8ed508 100644 --- a/public/src/modules/composer.js +++ b/public/src/modules/composer.js @@ -202,6 +202,20 @@ define(['taskbar'], function(taskbar) { } }); + postContainer.on('click', '.formatting-bar span .fa-picture-o', function() { + $('#files').click(); + }); + + $('#files').on('change', function(e) { + var files = e.target.files; + if(files) { + for (var i=0; i