A version or two back I noticed that there was a file named fck_flash.html in the /dialogs/ directory. Looking it over, it seems to be ready to rock, but I'm no expert.
Whats the story on this file? How do you integrate it into FCK's toolbar? It would be sooo cool if FCK could insert Flash objects.
--Matt--
Whats the story on this file? How do you integrate it into FCK's toolbar? It would be sooo cool if FCK could insert Flash objects.
--Matt--
RE: Easter egg?... fck_flash.html
Yes, I saw that file too and tried to use it by including it in the toolbar using "Flash" (and some others) as the item name - but it didn't work
I notice that there's even a toolbar image for Flash, so perhaps it's nearly ready?
Chris
RE: Easter egg?... fck_flash.html
I noticed this in version 1.4, and with version 1.5, I decided to implement it (at a client's request). It doesn't exactly work when adding it in as is. You'll need to make some changes to the JavaScript, but I have it working perfectly. I'll submit my changes to FredCK soon, and hopefully, it'll be in out in the next release.
Perhaps I'll post the changes here, too, but I'm too lazy to do that right now. If you really want them, prod me with a message and maybe I'll get off my lazy butt and post them.
-Ben
RE: Easter egg?... fck_flash.html
Prod, prod, prod ...
I would love to have access to adding Flash within the editor.
Thanks very much, Chris B.
RE: Easter egg?... fck_flash.html
Ben, could you please post your code under "patches"? - So everybody could take it and perhaps develop it further!
As we see, the interest in this feature is strong!
thx,
Markus
RE: Easter egg?.. fck_flash.html getting size
Heres the code to grab the flash size...
Only done in php as of now, in the upload.php file..
I added the following. That limits the size to 40,000 bytes but most importantly returns the flash movie size back to the opener.
if (move_uploaded_file($HTTP_POST_FILES['FCKeditor_File']['tmp_name'], $savefile)) {
chmod($savefile, 0666);
$filesize = filesize($savefile);
$size = getimagesize($savefile);
$width = $size[0];
$height = $size[1];
if ($filesize > 40000) {
print "Error, FileSize Exceeded<br><a href=http://www.photoalbumfun.com/gtpimage/createimage.php target=blank>Click Here to Resize</a>";
unlink($savefile);
}
else {
?>
<SCRIPT language=javascript>window.opener.setImage('<?php echo $UPLOAD_BASE_URL.$HTTP_POST_FILES['FCKeditor_File']['name'] ?>');window.opener.setImageHeight('<?php echo $height ?>');window.opener.setImageWidth('<?php echo $width ?>'); window.close();</SCRIPT>";
RE: Easter egg?... fck_flash.html
Me three It would be great if the editor supported Flashobjects.
RE: Easter egg?... fck_flash.html
RE: Easter egg?... fck_flash.html
RE: Easter egg?... fck_flash.html
Ben,
Regarding your patch, Ive implemented it and selected a SWF movie from my list of files, and clicked ok. It puts the following code into the editor:
<OBJECT height=200 width=200 data=http://uploads.mydomain.com/uploads/m00_t03_p01.swf classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000></OBJECT>
this shows up as a 200 x 200 black box in the editor
as opposed to in fck_flash.html where it appears as a tiny flash image. Am i missing something or doing something wrong here?
RE: Easter egg?... fck_flash.html
If someone knows how to do this, please let me know.
RE: Easter egg?... fck_flash.html
RE: Easter egg?... fck_flash.html
I guess my question has more to do with how does the code returned from the fck_flash.html dialog box work. Doesn't flash code have to look something like this:
<object width="550" height="400">
<param name="movie" value="somefilename.swf">
<embed src="somefilename.swf" width="550" height="400">
</embed>
</object>
that is not how SWF code is being returned at this moment.
also, i have code that will pull out SWF width and height. I found an original ASP code for this awhile back and I have converted it into CFMX cfc if either of those would help you.