Ju99ernaut / grapesjs-template-manager

Template and page manager for grapesjs
MIT License
82 stars 36 forks source link

Plugin not found #9

Closed diegoSenra closed 3 years ago

diegoSenra commented 3 years ago

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, } }, } });

i-polaris commented 3 years ago

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 ?

diegoSenra commented 3 years ago

Hi! Well, did not make any progress. Actually I gave up and built my own custom template manager.

Ju99ernaut commented 3 years ago

Unfortunately I'm unable to reproduce this. Are you loading the js and css files in the head of the document?

i-polaris commented 3 years ago

i have to do some test but @diegoSenra and me are using gjs-preset-newsletter plugin, so it maybe create an incompatibility

Ju99ernaut commented 3 years ago

I haven't faced this issue even whilst using gjs-preset-newsletter.