Loading
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
- Check out
master. - Enable the
allow_iframes_in_markdownFF. - Go to Admin → Settings → General → Embedded content.
- Check "Enable embedded content", "YouTube", and "Figma", then click "Save changes".
- Restart your Caproni cluster/GDK.
- Open the rich-text editor anywhere.
- 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.
- Enter a YouTube or Figma URL. A title is optional (future a11y use).
- Click Insert.
- 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