@dejwcake/craftable 0.1.8 → 0.1.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -165,6 +165,9 @@ var BaseForm = {
165
165
  upload: {
166
166
  // https://alex-d.github.io/Trumbowyg/documentation/plugins/#plugin-upload
167
167
  serverPath: '/admin/wysiwyg-media',
168
+ headers: {
169
+ 'X-CSRF-TOKEN': document.head.querySelector('meta[name="csrf-token"]').getAttribute('content')
170
+ },
168
171
  imageWidthModalEdit: true,
169
172
  success: function success(data, trumbowyg, $modal, values) {
170
173
  that.wysiwygMedia.push(data.mediaId);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dejwcake/craftable",
3
- "version": "0.1.8",
3
+ "version": "0.1.10",
4
4
  "description": "This is a frontend dependency for Craftable. Craftable is a Laravel-based open-source toolkit for building administration interfaces.",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {