Hi, I'm working with a CMS that uses the FCK editor. I think it's version 2.x as the layout doesn't look like the new 3.x. For my client I need the CMS to be able to upload QuickTime movies. They produce QT-clips from FinalCutPro and so swf is no output option. From what I've Googled it supposed to be possible. So far I couldn't get hold of a plugin or some code. Can anyone help me fixing this please?
-edit: I kept on searching and found discussions about the 'fckEmbedMovies' plugin. I found the plugin itself, installed it and followed intructions. However, the add movie icon does not shop up in the editors toolbar. So I'm still stuck. Any ideas?
Wed, 09/02/2009 - 15:33
#1
Re: Adding QuickTime to the FCK editor
Sorry for this long post but I think I'm almost there. By no means I'm a programmer but I decided to live dangerously. I started looking around in the code of 'fckconfig.js' which is in the fckeditor folder. The instructions that came with the plugin stated that you only had to add the following line of code at the end of the script for the plugin to be noticed and working: FCKConfig.Plugins.Add( 'EmbedMovies','en') ;
Well, that wasn't working so I took a closer look on how the other plugins or functionalities were described. To me as a total n00b on programming, the code describing Flash looked similar for what the EmbedMovie plugin could need. So I started looking for everywhere the word Flash was in the code and added similar code for EmbedMovie. I deleted the advised code: FCKConfig.Plugins.Add( 'EmbedMovies','en') ; at the end.
Then I looked further and found the folder 'Dialog" in the 'Editor' folder. In there I found several items for adding content like Flash, Image, Link etc. Since Flash to me was close enough to EmbedMovies I looked in the 'fck_flash' folder. In there I found 2 files: fck_flash_preview.html' and 'fck_flash.js'. Outside the folder there was another Flash-related file named 'fck_flash.html'. That last one contains the entry page for configuring/uploading Flash files and the files inside the folder the Flash script and the preview html that's placed as an inline frame in 'fck_flash.html' document. With this knowledge I did almost the same with EmbedMovies. I copied the files over from the EmbedMovies plugins original location and made the naming convention similar to Flash and the others.
My search went on an I made additions to the file 'fck_contextmenu.js', 'fck_commands.js' and the 'fck_toolbaritems' in the 'Internals' folder, taking the Flash code as an expample for adding the EmbedMovie code. Of course after making a copy of the original files for safekeeping. I noticed that the toolbar items were numbered so I gave EmbedMovie the last number of 2nd row of the menu bar making it nr 44 which was not taken by other menu items. And as last at phpthumb.functions.php, I added to the 'static $image_type_to_mime_type = array(' the mime types used with video:
video/quicktime
video/xmpeg
video/mp4
Then I updated the server and tested my new setup but I get this error: unknown item on menu bar "EmbedMovies".
So there's still one place (or more?) where I have the make mention of the EmbedMovie functionality. I've looked around but can't find it yet and I'm getting dizzy of poking around and not knowing. Can anyone please help me out? I think I'm almost there. Thanks in advance!
Re: Adding QuickTime to the FCK editor
Anyone? Developers reading this board?