I've taken Hernux's Flash patch [see 1] and turned it
into a plugin for FCKeditor-2.0FC to make installing
it easier.
Installation Instructions
1. Unzip the Flash plugin zip and paste it into
"editor/plugins/"
2. In fckconfig.js make the following additions;
3. add the following line after where
"FCKConfig.PluginsPath" is defined
FCKConfig.Plugins.Add("My_Flash", "en,it");
4. Add 'My_Flash' to your toolsbarset in fckconfig.js.
E.G.,
FCKConfig.ToolbarSets["Default"] = [
['My_Flash', 'Bold', 'Italic']
] ;
5. Add the Flash file browser config like so,
// Flash Browsing
FCKConfig.FlashBrowser = true ;
FCKConfig.FlashBrowserURL = FCKConfig.BasePath +
"filemanager/browser/default/browser.html?Type=Flash&Connector=connectors/jsp/connector"
;
FCKConfig.FlashBrowserWindowWidth = screen.width *
0.7 ; //70% ;
FCKConfig.FlashBrowserWindowHeight = screen.height
* 0.7 ; //70% ;
The FlashBrowserURL line will be slightly different
depending on how you've configured your connector.
Generally it's the same as your ImageBrowserURL except
that the 'type=Image' should be 'type=Flash'
That should be it. Let me know if you experience any
issues.
References
1 - Hernux Flash Patch
[http://sourceforge.net/tracker/index.php?func=detail&aid=1051555&group_id=75348&atid=543655]
2 - Installing the FindReplace Plugin
[https://sourceforge.net/forum/message.php?msg_id=2943394]
Logged In: YES
user_id=1285826
Hi,
This plugin works great except that i can not delete a flash
movie (object tag) once i add it in the editor !
I guess it is due to the object tag but i cannot find the
delete tag function.
Do u know a way to fix this ?
Logged In: YES
user_id=1194914
I am able to delete the Flash object within FCKeditor using
the backspace key in IE, I think this works in Firefox too.
Logged In: YES
user_id=1194914
I should also mention that this plugin is not complete and
it does have some bugs.
See
[https://sourceforge.net/forum/message.php?msg_id=2944183]
for a bug related to editing existing Flash Objects.
There is also an issue with the Object/Embed tag being
different when inserted from IE and Firefox. But I can't
provide any details at the moment.
Logged In: YES
user_id=1286440
Figured out a fix for the bug for the bug mentioned below,
so thought I'd post it...
1) Move "var oSel = null;" from getSelectedMovie to under
the declaration for oMedia, like so:
var oMedia = null;
var oSel = null;
2) Insert the function below:
function setOuterHTML (element, html) {
if (typeof element.outerHTML != 'undefined') {
element.outerHTML = html;
}
else {
var range;
if (document.createRange && (range =
document.createRange())
&& range.createContextualFragment) {
range.selectNode(element);
var docFrag = range.createContextualFragment(html);
element.parentNode.replaceChild(docFrag, element);
}
}
}
I didn't create this function - I found it in this Usenet
posting by Martin Honnen:
http://groups-beta.google.com/group/comp.lang.javascript/browse_thread/thread/8020e7741b0e33e5/f920baf9b8d98204?q=outerhtml+mozilla&rnum=5&hl=en#f920baf9b8d98204
3) Replace "FCK.InsertHtml(e.getOuterHTML()) ;" in the OK
function with this:
if ((oSel == 'undefined') || (oSel == null)) {
FCK.InsertHtml(e.getOuterHTML()) ;
} else {
setOuterHTML(oSel, e.getOuterHTML());
}
...and that ought to do it. Works in both IE and Firefox; I
don't know about other browsers. Post if there are any
flaws or bugs - I'm kinda new to this.
BTW, thank you very very much for the flash dialog code; it
saved me a *whole* lot of time and effort.
Logged In: YES
user_id=1282216
I've been looking at the EMBED/PARAMS problem and the
difficulties it brings when using FireFox or IE.
Don't know if this is 'old news' but I've found out the EMBED
part is necassary for FireFox, the PARAMS part is
necassary for IE. In the current version, (when you delete the
comment signs (//) before the params-part in fck_flash.js (ln
435)) it depends on the browser you create your flash in on
what part will be added.
IE deletes the EMBED part which leads to a not working
flash part in FireFox.
FireFox deletes the PARAMS part which leads to a not
working flash part in IE.
I've tested that if both parts would be added (the EMBED part
as well as the PARAMS part) both browsers will show the
flash part.
Hope this helps to find a solution for this problem. Please let
me know if it is solved!
Logged In: YES
user_id=1282216
The Flash Download appears to be a valid ZIP archive.
Logged In: YES
user_id=1282216
Sorry
a valid = an invalid
Logged In: YES
user_id=1308518
Is there any chance of someone posting a valid zip file for
this plugin? im really keen to add this to the editor
Logged In: YES
user_id=1194914
The provided ZIP file is a valid ZIP archive. But it does
seem like several people are having trouble opening it for
some reason. Try using a different ZIP program. If you're
still having trouble please let me know what OS you're using
and what ZIP program you're using and I'll post the archive
in a different format.
Logged In: YES
user_id=1356422
Originator: NO
this plugin is a slightly older version of https://sourceforge.net/tracker/index.php?func=detail&aid=1208017&group_id=75348&atid=737639
so I'm closing this one.