-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BUG: asDocument not working as expected #6116
Comments
I've made some code changes that might help you achieve the desired behavior. Please check them out here: JSFiddle Example It seems to match what you are looking for. |
Thank you, but that's not really the point. I'm fully able to make a workaround, but that does not fix the bug. The bug is that an export via Furthermore the hack you propose actually writes directly to the canvas meaning that there's no guarantee it will remain untouched. (For example there's a |
Yeah definitely not expected, we'll look into it. Appreciate the easily reproducible steps on the demo 👍 |
I'm just starting to integrate this library.. just a heads up: more issues will follow, I make them as clear as I can and am always happy to implement my proposed fixes, I do often need some direction when several solution directions exist |
Thanks @SamMousa detailed bug reports are always welcome. |
GrapesJS version
What browser are you using?
Chrome 128
Reproducible demo link
https://jsfiddle.net/sammousa/bxgsdc12/11/
Describe the bug
How to reproduce the bug?
<head>
, using the option{asDocument: true}
.editor.getProjectData()
, see that it contains the<head>
contenteditor.loadProjectData()
editor.getProjectData()
, see that it does NOT the<head>
contentWhat is the expected behavior?
I'd expect that this should always hold, maybe with the exception for some details like autogenerated ids.
What is the current behavior?
The head content is not loaded when using
loadProjectData()
.Code of Conduct
The text was updated successfully, but these errors were encountered: