HTML5 tags - video

Hey guys,

I’ve been looking to make Ephox recognize the <audio> and <video> tags in HTML5.

Has anyone here ever added a custom tag? And, if so, how did you accomplish it?

I’ve edited elj_config.xml with no luck thus far.

Thank you all!

We have used <object> tag to embed audio/video in Ephox editor. You may try that to solve your problem.

Thank you! Our thing though is we’re not having a problem but trying to implement a new feature…and use HTML5 tags as well. Thanks though for replying!

Did you find out how to do this? We are running into similar issue with using <video> tag

You should be able to edit your rxW2Ktidy.properties located in your [RhythmyxRoot] add audio and video to the block-level-tags section. After this you should be able to use these tags without tidy complaining. You will also need to add some text within these tags since tidy also strips out any tags that have nothing between starting and closing HTML element tags.

You can also edit your rxW2KserverPageTags.xml also located in [RhythmyxRoot]. To allow for HTML comments <!-- comment -->. You could then edit your template to put those comments between your audio and video tags. I will attach a file with the section that needs to be modified. The only place that needs to be modified is the bottom of the file starting remove generic Microsoft Word “if” wrappers section. Please leave the rest of the file the same.

Most likely you will want text between those tags in case a user does not support HTML5 fully however.

Let me know if this works or you run into any issues.

Kind Regards,
Nick

It would be nice if a future patch would configure tidy to allow all the new HTML5 Elements:

New Markup Element from: http://www.w3schools.com/html5/html5_new_elements.asp

Even though HTML5 is still in draft stage, “modern” browsers do support these new tags.

New elements for better structure:
<article> Specifies independent, self-contained content, could be a news-article, blog post, forum post, or other articles which can be distributed independently from the rest of the site.
<aside> For content aside from the content it is placed in. The aside content should be related to the surrounding content
<bdi> For text that should not be bound to the text-direction of its parent elements
<command> A button, or a radiobutton, or a checkbox
<details> For describing details about a document, or parts of a document
<summary> A caption, or summary, inside the details element
<figure> For grouping a section of stand-alone content, could be a video
<figcaption> The caption of the figure section
<footer> For a footer of a document or section, could include the name of the author, the date of the document, contact information, or copyright information
<header> For an introduction of a document or section, could include navigation
<hgroup> For a section of headings, using <h1> to <h6>, where the largest is the main heading of the section, and the others are sub-headings
<mark> For text that should be highlighted
<meter> For a measurement, used only if the maximum and minimum values are known
<nav> For a section of navigation
<progress> The state of a work in progress
<ruby> For ruby annotation (Chinese notes or characters)
<rt> For explanation of the ruby annotation
<rp> What to show browsers that do not support the ruby element
<section> For a section in a document. Such as chapters, headers, footers, or any other sections of the document
<time> For defining a time or a date, or both
<wbr> Word break. For defining a line-break opportunity.

New Media Elements
<audio> For multimedia content, sounds, music or other audio streams
<video> For video content, such as a movie clip or other video streams
<source> For media resources for media elements, defined inside video or audio elements
<embed> For embedded content, such as a plug-in
<track> For text tracks used in mediaplayers

The Canvas Element
<canvas> For making graphics with a script

New Form Elements
<datalist> A list of options for input values
<keygen> Generate keys to authenticate users
<output> For different types of output, such as output written by a script