- Strapi Version: 3.2.5
- Operating System: Windows
- Database: SQLite3
- Node Version: 12.20.0
- NPM Version:
- Yarn Version: 1.22.10
By replacing the default editor in Strapi with the CKEditor5, I was able to import html instead of markdown into my gatsby.js project.
Now adding a YouTube video in my RichText fields is possible and they are displayed correct in the strapi/admin backend.
While fetching the data in gatsby.js the nicely displayed YouTube video from Strapi/admin gets reduced to an
As per the documentation of CKEditor Media-Embed
this is the correct default behavior.
There is a workaround though:
Optionally, by setting
trueyou can configure the media embed feature to output media in the same way they look in the editor. So if the media element is “previewable”, the media preview (HTML) is saved to the database:
How and where can I set this property?
Thanks for your help.