Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi,
does anyone know if it's possible to add a device to the list of devices in the previewmode (left sidebar)?
Jeffrey
Hi Jeffrey,
I was curious about this too, but unfortunately they are currently hardcoded in the angular controller...
https://github.com/umbraco/Umbraco-CMS/blob/dev-v7/src/Umbraco.Web.UI.Client/src/canvasdesigner/canvasdesigner.controller.js#L17
Cheers, - Lee
Hi Lee,
thanks for the answer and I already thought this was the only place :(...
Cheers, Jeffrey
Hey guys, not sure when this came into umbraco but in recent versions you can add your own device in the Umbraco/js/umbraco.canvasdesigner.js file.
Umbraco/js/umbraco.canvasdesigner.js
If you want to add a custom CSS style that the canvas designer will use you can add it into Umbraco/assets/css/canvasdesigner.css
Umbraco/assets/css/canvasdesigner.css
Example :
canvasdesigner.css
.desktop-sm { width: 1280px; height: 768px; }
umbraco.canvasdesigner.js Ln 24..+
$scope.devices = [ { name: "desktop", css: "desktop", icon: "icon-display", title: "Desktop" }, { name: "small desktop", css: "desktop-sm border", icon: "icon-laptop", title: "Small Desktop" }, ...
Cheers,
Marc
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Add a preview device
Hi,
does anyone know if it's possible to add a device to the list of devices in the previewmode (left sidebar)?
Jeffrey
Hi Jeffrey,
I was curious about this too, but unfortunately they are currently hardcoded in the angular controller...
https://github.com/umbraco/Umbraco-CMS/blob/dev-v7/src/Umbraco.Web.UI.Client/src/canvasdesigner/canvasdesigner.controller.js#L17
Cheers,
- Lee
Hi Lee,
thanks for the answer and I already thought this was the only place :(...
Cheers, Jeffrey
Hey guys, not sure when this came into umbraco but in recent versions you can add your own device in the
Umbraco/js/umbraco.canvasdesigner.js
file.If you want to add a custom CSS style that the canvas designer will use you can add it into
Umbraco/assets/css/canvasdesigner.css
Example :
canvasdesigner.css
umbraco.canvasdesigner.js Ln 24..+
Cheers,
Marc
is working on a reply...