Closed pooriamo closed 4 years ago
It seems that there is a problem with custom device size. When I set default size to desktop, it works.
const deviceManager = editor.DeviceManager;
deviceManager.add('paper-a4', '210mm', {
height: '297mm',
name: 'A4',
});
const panelsManager = editor.Panels;
const panelDevices = panelsManager.getPanel('devices-c');
panelDevices.get('buttons').add([{
id: 'set-paper-a4',
command: editor => {
editor.setDevice('A4')
},
className: 'fa fa-desktop',
active: 1,
}]);
Had the same problem, adding widthMedia: ''
to my custom device fixed it. I think there is some problem when using millimeters in media queries so the styles aren't applied because it thinks your canvas is too big.
@VojtechLanka Thank you
Hi
When I choose a block and try to change the styles, nothing happens. (I'm using the web preset)
Here is my config: