javascript - Using flash plugin with inline ckeditor -


i using inline ckeditor version 4.0.2 , trying embed flash object(ooyala video) using flash plugin. after adding url see image "flash" instead of video. also, after saving code still see same image instead of video.

here code of flash image

<img class="cke_flash" data-cke-realelement="the real element code" data-cke-real-node-type="1" alt="flash animation" title="flash animation" align="absmiddle" src="http://localhost:3000/javascripts/lib/ckeditor_4.0.2/plugins/fakeobjects/images/spacer.gif?t=d26d" data-cke-real-element-type="flash" data-cke-resizable="true"> 

how can see actual video instead of image?

you cannot see flash video in editor on purpose. replaced dummy image secure editor's contents , make sure clicking (or other interaction) embedded object doesn't break editor. flash can go fullscreen, load lots of data, make noise or else that, speaking, undesired while working in editor.

once data editor, flash converted desired markup, i.e.:

<p>    <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0">       <param name="quality" value="high" />       <param name="movie" value="someflashtobeloaded.swf" />       <embed pluginspage="http://www.macromedia.com/go/getflashplayer" quality="high" src="qwe.swf" type="application/x-shockwave-flash"></embed>    </object> </p> 

just make sure editor's data ckeditor.instances.yourinstance.getdata(). never directly element.innerhtml, $('ckeditor').html() or similar.

what have in editor's dom is not editor.getdata(). because because editor performs advanced processing, filtering , stuff return valid html, including flash embedding markup.

see more in docs.


Comments

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

VBA function to include CDATA -