GrapesJS / filestack

Enable Filestack uploader inside the Asset Manager
BSD 3-Clause "New" or "Revised" License
22 stars 28 forks source link

FileStack plugin Issue #3

Closed BharathSavitr closed 6 years ago

BharathSavitr commented 6 years ago

Hi, I added fileStack plugin,

.. ...

var editor = grapesjs.init({ .... plugins: ['gjs-plugin-filestack'], pluginsOpts: { 'gjs-plugin-filestack': { key: 'A2uS7BnssSUSrxxxxxxx....',

    }
  },

... });

it throws an error like

Uncaught ReferenceError: filestack is not defined at grapesjs-plugin-filestack.min.js:2 at grapes.min.js:2 at Array.forEach () at Object.init (grapes.min.js:2) at (index):45

artf commented 6 years ago

@BharathSavitr Filestack itself is not included so you have to add it manually

<script src="https://static.filestackapi.com/v3/filestack-0.1.10.js"></script>