GrapesJS / preset-newsletter

GrapesJS preset configuration for the newsletter editor.
https://grapesjs.com/demo-newsletter-editor.html
BSD 3-Clause "New" or "Revised" License
195 stars 143 forks source link

How to set tablet device as default #64

Closed subhajeet2107 closed 5 years ago

subhajeet2107 commented 5 years ago

I have tried DeviceManager, but i cant set Tablet Device as default it is always opening with Desktop in device buttons, how can i trigger Tablet mode on load ?

AlessandroMagri commented 5 years ago

Just after

editor = grapesjs.init({ ... });

You can insert editor.setDevice('Tablet');

subhajeet2107 commented 5 years ago

Thanks, it is getting back to Desktop device for some reasons