How to change the default display mode of GrapesJS Studio Editor's page from "Desktop" to "Mobile Portrait"? #6528
-
Beta Was this translation helpful? Give feedback.
Answered by
artf
May 28, 2025
Replies: 1 comment 3 replies
-
In Grapesjs there is a "default device" option for DeviceManger, but not sure how to set this in the Studio SDK. You can use this temporarily: createStudioEditor({
options={{
onReady: editor => {
editor.setDevice('Mobile portrait');
}, |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
wrong id of the device, but
setDevice
could also work.Anyway, you can pass the grapesjs options in Studio in this way: