How to append custom data to the projectData with storage manager? #6622
Unanswered
rainerregan
asked this question in
Q&A
Replies: 1 comment
-
|
I think what you do is correct Here is how it's done in the fonts plugin: It may be due to the async call or just commands. Did you try to make a simple function call ? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I am developing a custom plugin for installing a custom font. Here are what I did:
When I call the custom command to save the data, it logs successful, but when I check the project data using browser tools, the data did not added to the project data saved on the session storage.
This is my custom storage plugin
This is editor options
And this is my font custom command where I save the data:
At the end, when the command

save-fontsis called, the project data always looks like this:There is no
fontskey appended to the project data saved on the sesion storage.I got inspiration from this plugin's code: https://github.com/silexlabs/grapesjs-fonts/blob/main/src/fonts.js
Any help would be appreciated. Thank you
Beta Was this translation helpful? Give feedback.
All reactions