Replies: 1 comment 2 replies
-
Hi @wunksert, based on my last 2 weeks working on this plugin:
Hope this help. |
Beta Was this translation helpful? Give feedback.
-
Hi @wunksert, based on my last 2 weeks working on this plugin:
Hope this help. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Looking at the template manager code from
grapesjs-template-manager
src/manager/templates.js
In general, I'm really confused about what the CurrentStorage object is. Going by the code, it seems like it's almost a RAM-like thing we need to manually handle, and the
store
andload
functions talk to disk (or equivalent)For instance:
cs.set...
on either side of thecs.store
andeditor.load
call? Why set the name, Id, and thumbnail after we store and loaddef
?Also, why is
getCurrentStorage()
not documented?It would be great to get more docs on how all this works. Cheers
Beta Was this translation helpful? Give feedback.
All reactions