Add <iframe> embed insert to RTE

What does this MR do and why?

Stacked on Refactor RTE embed URL check, minor fixes (!265659 - merged).

Adds the option to insert a new <iframe> embed from the rich-text editor. Previously they could only be edited; they had to be inserted via paste or the plain-text editor.

Screenshots or screen recordings

How to set up and validate locally

  1. Check out master.
  2. Enable the allow_iframes_in_markdown FF.
  3. Go to Admin → Settings → General → Embedded content.
  4. Check "Enable embedded content", "YouTube", and "Figma", then click "Save changes".
  5. Restart your Caproni cluster/GDK.
  6. Open the rich-text editor anywhere.
  7. Click the "+" icon and select "Embedded content".
    • If you don't see it, check that the FF is enabled, the application settings turned on, your dev environment restarted after doing so, and that you're using the rich-text editor and not plain-text one.
  8. Enter a YouTube or Figma URL. A title is optional (future a11y use).
  9. Click Insert.
  10. You should see it appear in the document.

You can also also try invalid URLs. :)

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Asherah Connor

Merge request reports

Loading
Loading