Comments (5)
Issue resolved, see release # 3.2.1
from laravel-grapesjs.
Hi @insssomniac, The issue is not clear. Can you please provide the code or any screenshots?
from laravel-grapesjs.
Okay, i try to write something like "steps to reproduce" because just code will be not clear also.
- Install laravel, create the Page model and implement this jd-dotlogics/laravel-grapesjs module to it. Also it is make sense to add some other basic fields like "name" and "slug" and basic CRUD controller with which we can edit the "name" and "slug", and also we can edit html in the editor.
- Install altek/accountant to the project. After this we will have entries in the database as soon as someone changes the page.
Problem is what if someone changing regular fields like "name" or "slug" (post request from the form in "edit" view to the "update" action in controller) -- we have his user id and type, but if this user changes html with the gjs editor -- we don't have any info about who was done it, you can see it on the attached screenshot from the db
from laravel-grapesjs.
Hi @insssomniac, the issue seems with the package you are using altek/accountant. As there is a mutator for the gjs_data property of your Editable. And it seems your package is not working with the mutators.
from laravel-grapesjs.
Hi @jd-dotlogics, it seems problem isn't with a mutator, because if i changing the gjs_data field in the controller and saving the model, my account is detected correctly and shown in log.
It seems what guard "web" doesn't detect the user when saving comes from the editor. Also if I try to get the Auth::user() in the store_gjs_data() function, it returns null. So maybe it is another way to get the user?
from laravel-grapesjs.
Related Issues (20)
- how to append block manager to another element HOT 2
- how to merge all plugins in one file HOT 1
- gjs_data column HOT 1
- 401 Unauthorized on Save HOT 2
- plz make Tutorial HOT 1
- How to activate Style Manager? HOT 1
- I can't load new block and templates HOT 1
- code editor clears styles HOT 3
- How can i show the page in a specific route? HOT 1
- How to store the html without the body tag HOT 2
- Custom templates and blocks are not showing in the editor HOT 9
- style manager parts HOT 3
- Editor doesn't load the page content and can't save HOT 3
- Database Connection needed during docker build
- Grapesjs version update
- Here some test on Laravel 10, and feedback. HOT 1
- Is it possible to load dynamic content in the generated page? HOT 1
- How to get instance of editor
- Getting error after enabling ckeditor from config HOT 1
- Missing required parameter HOT 2
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 laravel-grapesjs.