diff --git a/common/templates/xblock_v2/xblock_iframe.html b/common/templates/xblock_v2/xblock_iframe.html index bf3326eb1986..853c05605344 100644 --- a/common/templates/xblock_v2/xblock_iframe.html +++ b/common/templates/xblock_v2/xblock_iframe.html @@ -215,6 +215,13 @@ } return url; }, + notify: () => { + /** + * Used in `studio_view` + * + * TODO: Do nothing for now + * **/ + } }; /** @@ -328,6 +335,10 @@ event.preventDefault(); window.parent.postMessage('cancel-clicked', '*'); }); + document.querySelector('.save-button').addEventListener('click', function() { + event.preventDefault(); + window.parent.postMessage('save-clicked', '*'); + });