Confirm leaving the editor
No community answers yet. Open the original discussion on GitHub to share your solution.
Question
I'm wanna cancel the "leave site?" confirm dialog when a user tries to leaves the editor (when StorageManager is disabled).
The reason is that I'm storing the code inline, server-side and then pulling it with fromElement.
But when I submit the form to store the page, I always get the JS confirm dialog.
Even fake calling store does not work when storage is completely disabled.
Any ideas?
Answers (0)
No answers yet.
Related Questions and Answers
Continue research with similar issue discussions.
Issue #3249
QUESTION regarding JSON stored by the StorageManager
Hey, @artf. I want to access the json that is generated when a template is stored without actually storing the template. The json object ca...
Issue #4191
We are trying to store the data from grapesJS editor in Angular 10 application, getting CORS error, image attached below
GrapesJS version [x] I confirm to use the latest version of GrapesJS What browser are you using? Chrome 99.0.4844.5 Reproducible demo link...
Issue #3947
Selection box not clickable in editor
GrapesJS version[X] I confirm to use the latest version of GrapesJSWhat browser are you using? Firefox 94.0.1Reproducible demo link https:/...
Issue #3615
Text in text component cannot update , cannot get final result from toHTML
it is text component, if select body, the text will correct save/apply/store in component toHTML method, if just updating text, but not lea...
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
How to integrate GrapesJS into a Laravel app (complete guide 2026)
Embed the GrapesJS drag-and-drop editor in a Laravel app: render it in a Blade view, persist content to a controller with CSRF, and export clean HTML/CSS.
Tutorial
How to integrate GrapesJS into a Ruby on Rails app (complete guide 2026)
Embed GrapesJS in a Rails app: render it in an ERB view, persist content to a controller with the Rails CSRF token, and export clean HTML/CSS.
Tutorial
How to integrate GrapesJS into WordPress (complete guide 2026)
Add a GrapesJS drag-and-drop editor to WordPress: enqueue it on an admin page, save content through the REST API with a nonce, and render it with a shortcode.
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.