function customizeDevices(editor) {
const panelManager = editor.Panels;
// Hide default devices
editor.getConfig().showDevices = 0;
// Device icons manager
panelManager.addPanel({ id: "devices-c" }).get("buttons").add([
{
id: "set-device-desktop",
command: function(e) { return e.setDevice("Desktop") },
className: "gjs-dekstop-device",
active: true,
label: ``
},
{
id: "set-device-tablet",
command: function(e) { return e.setDevice("Tablet") },
className: "gjs-tablet-device",
label: ``
},
{
id: "set-device-mobile",
command: function(e) { return e.setDevice("Mobile portrait") },
className: "gjs-mobile-portrait-device",
label: ``
},
]);
}