upload SWF

4 posts by 3 authors in: Forums > CMS Builder
Last Post: April 13, 2008   (RSS)

By Berkowitz - April 10, 2008

HI again,

Is it possible to upload SWF files in a wysiwyg field, because now it keeps saying you can only upload images in this. eventhough I've added the extention swf in the validation part.

Thanks,
Berkowitz

Re: [Berkowitz] upload SWF

By Dave - April 10, 2008

Having SWF files inserted and play in the wysiwyg isn't currently supported. We can add a button to the wysiwyg for the next version to allow you to do that.

If you're comfortable editing the code here's how you can add a "Insert Media" button now:

Open /lib/menus/default/edit.php and search for "plugins". Add the code in red:

plugins: 'inlinepopups,contextmenu,table,fullscreen,paste,media',


Open /lib/menus/default/edit_functions.php and search for "theme_advanced_buttons2". Add the code in red:

theme_advanced_buttons2 : "forecolor,backcolor,|,link,unlink,anchor,|,hr,image,media,table,|,pastetext,pasteword,|,code",
theme_advanced_buttons3 : "",

// Load Plugins: ***NOTE*** plugins must be added both here and in tinyMCE_GZ.init() in edit.php!
plugins : "inlinepopups,contextmenu,table,fullscreen,paste,media",


Then upload the contents of the attached file to /tinymce3/plugins/media/

Hope that helps. If you're not in a rush you can also just wait for the next version and upgrade.
Dave Edis - Senior Developer
interactivetools.com
Attachments:

media.zip 32K

Re: [Dave] upload SWF

By mheller - April 12, 2008

I know that this is sort of an open ended type questions, on average, how often are version updates done?