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

peerv’s picture

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!

AkshayAdhav’s picture

Hey, thanks. I was also facing same issue. It works man!!!

sh radhoush’s picture

do you mean add a text format in Content authoring->Text formats?
If yes I did it but nothing changed

SivaprasadC’s picture

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