You need to be logged in to post in the forum - Log In

An active JCE Pro Subscription is required to post in the forum - Buy a Subscription

Support is currently Offline

Official support hours
Monday to Friday
09:00 - 17:00 Europe/London (BST)

Please create a new Ticket and we will get back to you as soon as we can.

#105799 tag is stripped although "no filter" for Super Users and "video" allowed

Posted in ‘Editor’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Latest post by woluweb on Thursday, 11 February 2021 17:15 GMT

woluweb
Hi Ryan, Sorry I have to contact you for this, usually I try and find the answers by myself :) But here it is weird and I don't understand why my <video> tag is stripped in the editor when I switch from Editor/HTML view. First, here is my markup in the Article :

<video autoplay="autoplay" class="videostream"></video>
Based on this https://www.joomlacontenteditor.net/support/faq/editor/video-removed-on-saving I verified : Super Users were already set on "No Filter" in the Global Configuration Also I did check the following : in Plugin Parameters > Media Support VIDEO is set on Yes So I have really no clue of why my <video> tag is stripped... Txs for helping :)

Ryan
The <video> tag needs to have a src attribute.

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

woluweb
OK, indeed if I add a fake scr="movie.ogg" it works !

But actually, I did not have any bc I was doing something similar to this, namely integrating the webcam to the page... so I don't need the scr attribute :
https://www.html5rocks.com/en/tutorials/getusermedia/intro/

Txs for the explanation & solution Ryan !

Ryan
Trying to stick to the rules 🙂 - https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video

Technically, if there is no src attribute, then there must be a <source> tag with one inside the <video> tag.

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

woluweb
Hi Ryan, I have another issue : now the users have added a <track> tag inside the <video> tag. But it gets stripped even if 1. super user 2. "no filtering" in general configuration 3. added "track" to "extended elements" The only temporary way I found was to disable the "validate html". How can I still have the <track .../ > while having "validate html" on ? Just in case, here is the full html

<div id="videocontainer"> <video controls="controls"
          id="firesidevideo" width="720"> <source
            src="https://www.joomlacontenteditor.net/Marzari_full.mp4" type="video/mp4"> <track
            kind="captions" src="https://www.joomlacontenteditor.net/Marzari.vtt" srclang="en"
            label="English"> </video> </div>
    </div>
Txs!

Ryan
Please try JCE Pro 2.9.3 RC2 - https://www.joomlacontenteditor.net/downloads/editor/pro/development

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

woluweb
Hi Ryan,

I have installed & tested : it works fine. I can switch from "Code tab" to "Editor tab" and the <track (...)> Tag is not stripped any more.

Txs for the quick follow-up and the fix ! 🙂