Comments (6)
Remove grapesjs-indexeddb
plugin.
from grapesjs-template-manager.
If i do that i get this other error;
Uncaught TypeError: crypto.randomUUID is not a function
at Z.r.run (commands.js:63:12)
at Z.r.callRun (grapesjs:2:353065)
at Object.runCommand (grapesjs:2:350160)
at Object.run (grapesjs:2:349664)
at Object.runCommand (grapesjs:2:883147)
at index.js:114:17
at IDBRequest.r.onsuccess (indexeddb.js:45:25)
The line on commands.js;
cm.add('get-uuidv4', () => crypto.randomUUID() || uuidv4());
cm.add('take-screenshot', (editor, s, options = { clb(d) { return d } }) => {
const el = editor.getWrapper().getEl();
getJpeg(el, {
quality: opts.quality,
height: 1000,
'cacheBust': true,
style: {
'background-color': 'white',
...editor.getWrapper().getStyle()
},
}, options.clb, opts.onScreenshotError);
});
Thank you for your help!
from grapesjs-template-manager.
Looks like your browser doesn't support the crypto.randomUUID
function, there's a fallback but it doesn't seem to be handled properly so I'll look into fixing that. Which browser are you using?
from grapesjs-template-manager.
Same error on Chrome and Firefox
from grapesjs-template-manager.
Okay, i think i found my mistake, it was with the import of grapesjs file.
Now i have another error, when i import your plugin on top of HTML file, it loads and i get this error;
I think its because editor its not created yet, but if i load your plugin on the bottom of html, grapesjs gives the error of plugin not found, because your plugin its not loaded yet.
Am i doing something wrong? Thank you.
from grapesjs-template-manager.
You'll need to load the editor and all plugins before initialization. One way of doing this is loading them in the head of your document.
from grapesjs-template-manager.
Related Issues (20)
- Grapesjs adds "-2" to ids in the html. HOT 1
- Open projects and templates not working HOT 1
- add additional values ββon page edit HOT 1
- Disable blocks depending on the page HOT 4
- loading assets HOT 1
- TypeError from file src/index.js HOT 1
- Is there any method to get html and css in the content HOT 1
- Saving generated thumbnail fail HOT 3
- Append to div HOT 1
- Display current page name HOT 1
- Pages within site not saved HOT 1
- Request: Custom view options for pages and/or template view HOT 1
- grapejs storage
- grapejsstorage
- Add save(update) button in panels HOT 1
- Storage with rest api HOT 1
- crypto.randomUUID is not a function error
- dist/grapesjs-project-manager.min.css does not found HOT 3
- Storage Re-names element IDs HOT 2
- Can't rename open project
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grapesjs-template-manager.