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

Snippets with HTML5 elements

1 Answer 13 Views
Editor
This is a migrated thread and some comments may be shown as answers.
HWNeil
Top achievements
Rank 1
HWNeil asked on 01 Aug 2014, 08:48 AM
Hi

I added some snippets containing HTML5 elements, such as a quote:

<figure>
   
<blockquote>Inset quote</blockquote>
   
<figcaption>Insert source</figcaption>
</figure>

These were wrapped in CDATA tags but when used in the editor, all I got in the source code was <div></div>.

I then wrapped my snippet in <div> tags and got the expected result.


So, should snippets always be wrapped in <div> tags, or this only necessary for those containing HTML5 tags?

Thanks

1 Answer, 1 is accepted

Sort by
0
Ianko
Telerik team
answered on 04 Aug 2014, 12:08 PM
Hello Heriot,

I built a simple project upon the provided scenario, but the snippet is getting inserted as expected without any div tags needed in the configuration. 

You can examine this screencast for the results on my end.

Regards,
Ianko
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Editor
Asked by
HWNeil
Top achievements
Rank 1
Answers by
Ianko
Telerik team
Share this question
or