Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By kruser on
I'm using the ckeditor module. In source view, I'm adding a simple html5 video - but when I toggle Source view, it removes my video tags. How can I get Ckeditor to leave my video tags alone?
ex:
<video autobuffer="1" controls="controls" height="374" poster="/16x9_poster.jpg" preload="auto" src="/video_720.mp4" width="660"></video>
Comments
Go to Configuration/Content
Go to Configuration/Content/Text and add a new type, call it Raw HTML
Don't set any options, just save the new type!
Go to your CKeditor and select below the body field "Raw HTML"
Enter you HTML code and GO!
Working
Hey, thanks. I was also facing same issue. It works man!!!
do you mean add a text format
do you mean add a text format in Content authoring->Text formats?
If yes I did it but nothing changed
It is not working
Hi Peerv,
I'm using Drupal 9.2.10 with CKEditor version: 4.17.1.
Do you mean adding a new text format in Content authoring->Text formats?
If yes I did it but nothing changed.
Am I missing anything? Thanks in advance