In laravel 8 app with “jd-dotlogics/laravel-grapesjs”: “^3.3.0”, I need to extend its functionality :
To add new custom button at toolbar
By clicking on this custom button to open JS prompt method
If prompt method was closed with success to save entered value(external url) with unique id of selected
element in db with request to server.
For any element on the form I need some unique custom_id and sending saving request save unique custom_id/Entered value
Next time when editor is opened by manager request to db must be send and these Entered value created prior sessions
must be tied to any element by these unique custom_id. Can I create somehow these unique custom_id ?
Manually editing public/vendor/laravel-grapesjs/assets/editor.js file I made 3 first points(last without posting request to server).
I know usually it is supposed that this file is not edited manually, but I do not see any other way to implement it.
Unpacked version is 37 K lines of code, so I pasted it in :
Any ideas how can I create and use these unique custom_id ?