Plugin not found
diegoSenra opened this issue · comments
Hey! Can you giv me a hand?
The 'plugin not found' message is appearing in my browser
it correctly loads the js and css files from unpkg but the editor cant find the plugin
Do you have any idea of what could be happening?
This is my editor:
var editor = grapesjs.init({
height: '100%',
//Store manager for templates
storageManager: {
//autoload: 0,
type: 'rest-api',
// the URIs below can be the same depending on your API design
urlStore: ${server}/Comunication/EmailContent/SaveTemplate
,// POST
//urlLoad: 'https://endpoint/load/',// GET
//urlDelete: 'https://endpoint/delete/',// DELETE
params: { _some_token: '...' },
headers: { Authorization: 'Basic ...' }
},
//Plugin and other configs
container: '#gjs',
fromElement: true,
plugins: ['gjs-preset-newsletter', 'grapesjs-template-manager'],
pluginsOpts: {
'gjs-preset-newsletter': {
codeViewerTheme: 'material',
cellStyle: {
'font-size': '12px',
'font-weight': 300,
'vertical-align': 'top',
color: 'rgb(111, 119, 125)',
margin: 0,
padding: 0,
}
},
}
});
Hello, I having the same issue a you, i'm currently digging to see where the issue come from, i suspect a wrong config with grapesjs-cli
@diegoSenra : did you made any progress on tihs issue ?
Hi!
Well, did not make any progress.
Actually I gave up and built my own custom template manager.
Unfortunately I'm unable to reproduce this. Are you loading the js and css files in the head of the document?
i have to do some test but @diegoSenra and me are using gjs-preset-newsletter plugin, so it maybe create an incompatibility
I haven't faced this issue even whilst using gjs-preset-newsletter
.