Editor.getCss() issue with PHP when using Cookie to pass Css styles
The StorageManager is only a mechanism to get the data to your endpoint in a nice format. I would see no reason why you then can't save it into a file if you wish. Just get the $POST data, and then do fileput_contents. Thanks Adam
Read full answer below ↓Question
My company would like me to develop an automated no import(Not downloading zip and upload zip) template builder that can be used on Email marketing system.

However whenever I tried to export the CSS to a server file through writing and creating the file without downloading it. The CSS just contains the one that I highlighted. All the unhighlighted CSS does not include in the file. Any idea on how to solve this?
Here's my coding

Answers (3)
The StorageManager is only a mechanism to get the data to your endpoint in a nice format. I would see no reason why you then can't save it into a file if you wish. Just get the $_POST data, and then do file_put_contents.
Thanks Adam
Hi Chewhern,
Cookies can't hold a lot of information - something like 4k - so it will not be large enough to store CSS or HTML. You really need to use the Storage Manager.
https://grapesjs.com/docs/modules/Storage.html
Thanks, Adam
since you are here, I did like to know on the behavior of the storage manager, if I create a script to store those 2 data in server, can i do so without saving it directly to database? Cuz i have seen some of the people here save it directly to database.
Related Questions and Answers
Continue research with similar issue discussions.
Issue #401
Cannot upload images
Hi, while uploading an image through asset manager, I get the following error: Assetmanager configuration at editor init looks like Folder...
Issue #3432
Hi @artf, Can we able to use Wistia in GrapesJS editor. I would like to use it as Vimeo used in the editor. Scenario: I have a video in my...
Issue #588
Editor UI changes
I would like to make the editor like the photo above. However, I can't find the css for the background or the panels. Any help provided wou...
Issue #2381
[QUESTION] Is it possible to add info modal on the editor
Hi, I would like to add on the grapejs editor a clickable questionmark we can click so we could give information on what does this specific...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.
Browse free plugins →Premium plugins ship with support, regular updates, and production-ready features — save days of integration work.
Browse premium plugins →Related tutorials
In-depth guides on the same topic.
Tutorial
GrapesJS vs Gutenberg: How to Build a Custom WordPress Page Builder
Compare GrapesJS and Gutenberg, learn when to use each, and follow a step-by-step guide to build a production WordPress page builder with GrapesJS.
Tutorial
Integrating GrapesJS into a Vue 3 App — Complete Guide for 2026
Build a Vue 3 landing page builder with GrapesJS and Vite. Custom blocks, composables, remote storage, TypeScript & production tips. Updated for 2026.
Tutorial
How to Build a Drag-and-Drop Page Builder in Angular Using GrapesJS (Step-by-Step Guide + Code)
Build a visual drag-and-drop page builder in Angular with GrapesJS. Learn setup, plugins, and backend saving in this full code guide.
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.