Commit ce054355 by Braden MacDonald

Fix: imageURL was renamed but studio code wasn't updated

parent 8ef66ec2
...@@ -346,6 +346,9 @@ function DragAndDropEditBlock(runtime, element, params) { ...@@ -346,6 +346,9 @@ function DragAndDropEditBlock(runtime, element, params) {
if (itemData) { if (itemData) {
ctx = itemData; ctx = itemData;
if (itemData.backgroundImage && !ctx.imageURL) {
ctx.imageURL = itemData.backgroundImage; // This field was renamed.
}
if (itemData.size && parseInt(itemData.size.width) > 0) { if (itemData.size && parseInt(itemData.size.width) > 0) {
// Convert old fixed pixel width setting values (hard to // Convert old fixed pixel width setting values (hard to
// make mobile friendly) to new percentage format. // make mobile friendly) to new percentage format.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment