[Building Sakai] antisamy to allow iframe for Kaltura video

İrfan SÜRAL irfansural at gmail.com
Sun Dec 14 15:13:07 PST 2014


Hi All,

 

I am trying to embed Kaltura 9.19.8 HTML5 video embed code to Sakai 10.2
Lesson Builder Tool. 

 

I have activated antisamy in saka.properties like;

 

content.cleaner.use.legacy.html=false

content.cleaner.default.low.security=true

 

And I modified antisamy rules many times to test iframe in Lessonbuilder
editor but no luck so far.

 

I can play with attributes of antisamy file
(/sakai/antisamy/low-security-policy.xml) without any problem.

 

The thing that I couldn't do is I can't let ckeditor to pass html codes
inside iframe tag

 

My Embed Code

 

<iframe
src="http://kaltura-servername:80/p/101/sp/10100/embedIframeJs/uiconf_id/234
48201/partner_id/101?iframeembed=true&playerId=kaltura_player_1418385714&ent
ry_id=0_vg83m024&flashvars[streamerType]=auto" width="560" height="395"
allowfullscreen webkitallowfullscreen mozAllowFullScreen frameborder="0"
style="width: 560px; height: 395px;" itemprop="video" itemscope
itemtype="http://schema.org/VideoObject">


<span itemprop="name" content="What is Spring"></span>
<span itemprop="description" content=""></span>
<span itemprop="duration" content="154"></span>
<span itemprop="thumbnail"
content="http://kaltura-servername/p/101/sp/10100/thumbnail/entry_id/0_vg83m
024/version/100012/acv/182"></span>
<span itemprop="width" content="560"></span>
<span itemprop="height" content="395"></span>

</iframe>

After I saved my embed code I got the following source of ckeditor;

 

 

<iframe frameborder="0" height="395" itemprop="video"
itemtype="http://schema.org/VideoObject"
src="http://kaltura-servername:80/p/101/sp/10100/embedIframeJs/uiconf_id/234
48201/partner_id/101?iframeembed=true&amp;playerId=kaltura_player_1418385714
&amp;entry_id=0_vg83m024&amp;flashvars[streamerType]=auto" style="width:
560.0px;height: 395.0px;" width="560" allowfullscreen=""
webkitallowfullscreen="" mozAllowFullScreen="" >&lt;span
itemprop=&amp;quot;name&amp;quot; content=&amp;quot;Proje
K&uuml;lt&uuml;r&uuml; Mod&uuml;l 5&amp;quot;&gt;&lt;/span&gt; &lt;span
itemprop=&amp;quot;description&amp;quot;
content=&amp;quot;&amp;quot;&gt;&lt;/span&gt; &lt;span
itemprop=&amp;quot;duration&amp;quot;
content=&amp;quot;154&amp;quot;&gt;&lt;/span&gt; &lt;span
itemprop=&amp;quot;thumbnail&amp;quot;
content=&amp;quot;http://kaltura-servername/p/101/sp/10100/thumbnail/entry_i
d/0_vg83m024/version/100012/acv/182&amp;quot;&gt;&lt;/span&gt; &lt;span
itemprop=&amp;quot;width&amp;quot;
content=&amp;quot;560&amp;quot;&gt;&lt;/span&gt; &lt;span
itemprop=&amp;quot;height&amp;quot;
content=&amp;quot;395&amp;quot;&gt;&lt;/span&gt;</iframe>

 

 

 

 

I have problem in allowfullscreen webkitallowfullscreen mozAllowFullScreen
attributes (which shouldn't be like allowfullscreen ="") 

and I have encoded version of <span> tags. Which means I can't let HTML
codes inside iframe.

 

Is it possible to do what I need with my embed code and current antisamy? 

Kernel should be first patched to allow that?

 

I have created this feature for sakai kaltura contrib too.
https://jira.sakaiproject.org/browse/SKE-258 

 

Any ideas?

 

Thank you 

Regards,

 

Irfan SURAL

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20141215/dacec095/attachment.html 


More information about the sakai-dev mailing list