diff --git a/dist/PublicLab.Editor.js b/dist/PublicLab.Editor.js index 7dc446b2..2c567930 100644 --- a/dist/PublicLab.Editor.js +++ b/dist/PublicLab.Editor.js @@ -22306,7 +22306,7 @@ module.exports = function(textarea, _editor, _module) { // should return whether `e.dataTransfer.files[i]` is valid, defaults to a `true` operation validate: function isAttachment (file) { var valid = true, - formats = _module.options.formats || ['csv', 'xls', 'zip', 'kml', 'kmz', 'gpx', 'lut', 'stl', 'dxf', 'txt', 'pdf', 'svg', 'doc', 'ppt'], + formats = _module.options.attachmentFormats || ['csv', 'xls', 'zip', 'kml', 'kmz', 'gpx', 'lut', 'stl', 'dxf', 'txt', 'pdf', 'svg', 'doc', 'ppt'], filetype = file.name.split('.')[file.name.split('.').length - 1]; filetype = filetype.toLowerCase(); if (formats.indexOf(filetype) === -1) valid = false; diff --git a/package.json b/package.json index 70c77e61..1b830738 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "publiclab-editor", - "version": "1.2.1", + "version": "1.2.2", "description": "PublicLab.Editor is a general purpose, JavaScript/Bootstrap UI framework for rich text posting, which provides an author-friendly, minimal, mobile/desktop (fluid) interface for creating blog-like content, designed for PublicLab.org", "main": "dist/PublicLab.Editor.js", "scripts": {