It would be great if this could insert some sort of macro rather than the object tag. That way it could provide flash support to ckeditor when using the wysiwyg_filter module (which blacklists the object and embed tag)

Comments

anrikun’s picture

Have you tried to use SWFObject in Input formats - CKEditor SWF Filter settings?

miiimooo’s picture

I've enabled it but the flash button still creates an object tag unless I'm missing something here.

anrikun’s picture

Try to clear your Drupal and browser caches.
Also, make sure you have followed all the instructions on Input formats - CKEditor SWF Filter settings page.

miiimooo’s picture

Thanks for your quick replies! I'm not sure about the settings of the input filter. At the moment I have "Use SWFObject" ticked, and "sites/all/libraries/swfobject/swfobject.js" for SWFObject path (though that file doesn't exist).

Using the SWF button in CKEditor (via WYSIWYG) I still get this code inserted (and stripped out by the wysiwyg_filter):

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" height="480" width="640"><param name="allowFullScreen" value="true"><param name="quality" value="high"><param name="movie" value="http://www.youtube.com/v/hpiIWMWWVco"><embed allowfullscreen="true" quality="high" src="http://www.youtube.com/v/hpiIWMWWVco" type="application/x-shockwave-flash" height="480" width="640"></object>
anrikun’s picture

(though that file doesn't exist)

So don't you think you should put it there first? ;-)

Download SWFObject from http://swfobject.googlecode.com/files/swfobject_2_2.zip
And unpack it to your sites/all/libraries directory.

miiimooo’s picture

Have done that but it doesn't make any difference apart from that pasting the youtube URL into the URL field doesn't bring up the dimensions or the preview any longer..

anrikun’s picture

If possible please post credentials to access your site using my contact form. I'll have a look at your config then.