You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using grapesjs in a starter vue project.
Here is the code
import'grapesjs/dist/css/grapes.min.css'importgrapesjsfrom'grapesjs'importgjsPresetWebpagefrom'grapesjs-preset-webpage'// i18nimportzhfrom'grapesjs/locale/zh'// filestackimportpluginFileStackfrom'grapesjs-plugin-filestack'console.log(pluginFileStack)exportdefault{name: 'HelloWorld',data(){return{editor: {},msg: 'Welcome to Your Vue.js App'}},mounted(){this.editor=grapesjs.init({// Indicate where to init the editor. You can also pass an HTMLElementcontainer: '#gjs',// Get the content for the canvas directly from the element// As an alternative we could use: `components: '<h1>Hello World Component!</h1>'`,fromElement: true,// Size of the editorheight: '500px',width: 'auto',i18n: {locale: 'zh',// default localedetectLocale: false,// by default, the editor will detect the languagelocaleFallback: 'zh',// default fallbackmessages: { zh }},// Disable the storage manager for the moment// storageManager: {// type: 'remote',// stepsBeforeSave: 10,// urlStore: 'http://store/endpoint',// urlLoad: 'http://load/endpoint',// params: {}, // Custom parameters to pass with the remote storage request, eg. CSRF token// headers: {} // Custom headers for the remote storage request// },// Default configurationsstorageManager: {id: 'gjs-',// Prefix identifier that will be used on parameterstype: 'local',// Type of the storageautosave: true,// Store data automaticallyautoload: true,// Autoload stored data on initstepsBeforeSave: 1// If autosave enabled, indicates how many changes are necessary before store method is triggered},plugins: [gjsPresetWebpage,pluginFileStack],pluginsOpts: {'gjs-plugin-filestack': {}}})
it shows error
ReferenceError: filestack is not defined
at eval (grapesjs-preset-webpage.min.js?3094:15)
at eval (grapes.min.js?e1c1:11)
at Array.forEach (<anonymous>)
at Object.init (grapes.min.js?e1c1:11)
at VueComponent.mounted (HelloWorld.vue?18db:29)
at invokeWithErrorHandling (vue.esm.js?efeb:1863)
at callHook (vue.esm.js?efeb:4228)
at Object.insert (vue.esm.js?efeb:3148)
at invokeInsertHook (vue.esm.js?efeb:6357)
at Vue.patch [as __patch__] (vue.esm.js?efeb:657
The text was updated successfully, but these errors were encountered:
I'm using grapesjs in a starter vue project.
Here is the code
it shows error
The text was updated successfully, but these errors were encountered: