diff --git a/addons/web_editor/static/src/js/editor/snippets.options.js b/addons/web_editor/static/src/js/editor/snippets.options.js index 1540ad6b8bc..2ea2658e31a 100644 --- a/addons/web_editor/static/src/js/editor/snippets.options.js +++ b/addons/web_editor/static/src/js/editor/snippets.options.js @@ -4106,7 +4106,7 @@ registry.BackgroundShape = SnippetOptionWidget.extend({ flip: [], }; const json = target.dataset.oeShapeData; - return json ? Object.assign(defaultData, JSON.parse(json)) : defaultData; + return json ? Object.assign(defaultData, JSON.parse(json.replace(/'/g, '"'))) : defaultData; }, /** * Returns the default colors for the currently selected shape.