This is a migrated thread and some comments may be shown as answers.

HTML5 Video Tag

7 Answers 134 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Rob
Top achievements
Rank 2
Rob asked on 06 Sep 2011, 07:18 PM
When adding HTML5 video tag to the editor, it strips out the controls preload attributes:
<video id="video" poster="myposter.jpg" src="myvideo.mp4" controls preload></video>

Any suggestions? 

Thanks
Chuck

7 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 07 Sep 2011, 04:55 PM
Hello Chuck,

The content area of RadEditor is an editable IFRAME which uses the rich text editing engine of the browser under which it operates and this is a browser behavior. The XHTML specification does not allow tag attributes without values and for this reason the browser strips them.

You can reproduce the same issue in an editable iframe as well as in other web based competitors' editors.

All the best,
Rumen
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

0
Accepted
Darcy
Top achievements
Rank 1
answered on 23 Jan 2012, 08:30 PM
Hey not sure if you ever resolved this for anyone out there who runs in to it also I was able to get around this limitation by making the attribute equal to itself...

So controls="controls" and autoplay="autoplay" for example. I tried also leaving them null or making them equal to true but both of those seemed to cause performance issues. The former option worked the best and worked on IOS and Android devices and all A-grade browsers as well as IE 6/7/8.
0
Rumen
Telerik team
answered on 26 Jan 2012, 12:47 PM
Hello,

Thank you for sharing your discovery with the community. Indeed, if the HTML attributes have values the rich text engine of the browser will not strip them.

Greetings,
Rumen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
0
Richard
Top achievements
Rank 1
answered on 30 Mar 2018, 06:29 PM
I love this post, here you state not going to that its impossible, to deal with it its just the way it is :) and then someone comes along and fixes it for you :) IT.
0
Richard
Top achievements
Rank 1
answered on 30 Mar 2018, 06:30 PM
 I love YOUR post, here you TELERIK Pro states   not going to  that its impossible, to deal with it just the way it is :) and then someone comes along and fixes it for you :)  IT.
0
David
Top achievements
Rank 2
answered on 06 Apr 2018, 07:28 PM
Meanwhile, 5+ years later and there is still a bug in the RadEditor's Media Manager. You can enter whatever values you want for various properties, but none of them ever get placed into the inserted html.
0
Rumen
Telerik team
answered on 10 Apr 2018, 07:20 AM
Hi David,

The media manager is working with and inserting the obsolete embed and object tags and the properties applies to these tags are deprecated and not supported by the modern browsers. That's why I created the Inserting a Video Tag via the Media Manager instead of the default Object/Embed ones article, to provide an alternative way of inserting the modern video media tags.

If you want to see a redesigned and updated Media Manager, please file your feature request in the Feedback portal.

You may also find useful the Insert External Video dialog too.

Best regards,
Rumen
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Editor
Asked by
Rob
Top achievements
Rank 2
Answers by
Rumen
Telerik team
Darcy
Top achievements
Rank 1
Richard
Top achievements
Rank 1
David
Top achievements
Rank 2
Share this question
or