From a17b386254ff2d590e12adaa7d34da563b8a153d Mon Sep 17 00:00:00 2001 From: "Guillaume (gdi)" Date: Tue, 21 Mar 2023 10:01:37 +0000 Subject: [PATCH] [FIX] website: allow edit mode when a wrong iframe is in the page Before [this other commit], it was possible to add a wrong video on a page of its website. If the user did this and saved the page, it was no longer possible for him to enter edit mode. To solve this, two improvements have been made: 1. We now prevent the user from putting a wrong video on his page when he goes through the media dialog (see [this other commit]). 2. Since there are probably websites that have a bad video (it was possible before [this other commit]), this commit allows users to edit the pages that have these wrong videos. Steps to reproduce before [this other commit]: - Edit a page. - Via the media dialog add a video with the following URL: 'google.com'. - Save the page. => It is no longer possible to enter edit mode. Note that part 1 was merged from 14.0 but part 2 was merged from 16.0 because the media dialog adds `iframe` without `src` attribute since [the refactor of the media dialog] and we cannot edit a page containing this code `