You are not logged in.
Hi, I tried to insert the flash plugin into a custom install of xinha, but I didn't manage to make it work; it seems to be required to install the getHtml plugin first, but i didn't find the archive. I have 2 questions:
- is it enought to copy a plugin in the xinha plugin directory to activate it or do I have to set something somewhere?
- is it possible to have a flash button like the image one that insert directly a swf into the editor without copy and paste the html code into the source view?
Regards,
Ben
ps: here is the plugins list in my plugin directory:
Abbreviation
CharacterMap
CharCounter
ContextMenu
CSS
CVS
DoubleClick
DynamicCSS
EditTag
EnterParagraphs
Equation
FindReplace
FlashEdit
FormOperations
Forms
FullPage
FullScreen
HtmlTidy
ImageManager
InsertAnchor
InsertMarquee
InsertSmiley
InsertWords
LangMarks
Linker
ListType
NoteServer
QuickTag
SpellChecker
Stylist
SuperClean
TableOperations
Template
UnFormat
Offline
Thx for your fast reply, I tried to set the getHtml plugin following this model (create a GetHtml directory in my xinha plugins directory and paste the js file inside), like disceabe in this link:
http://code.campware.org/projects/camps … /?rev=4130
but no flash button appears after that... did I missed anything?
Regards,
Benjamin
Offline
Unfortunately, the out of the box Xinha can't handle the FlashEdit plugin. You have to first link your content page to your downloaded copy of the flashobject.js file ( which provides a superior way of embedding Flash using Web standards ), and you also have to set up Xinha to be "javascript content safe" by switching the word javascript with the word freezescript before the content enters the editor, and switching the word freezescript back to javascript after the content leaves the editor. This has to happen because of the way that the flashobject.js file puts Flash on a page, by writing it into a div with JavaScript.
If the plugin did insert the div and the function on the page in exactly the way the flashobject method requires, it would write the flash embed code from the flashobject.js file onto the page imediately and every time you toggled from view HTML. By inserting the scripting with the bogus language "freezescript" that you must change to "javascript" at save, the html and scripting are able to exist in the content in Xinha harmlessly without executing the document.write inside the editor.
Last edited by mharrisonline (2006-04-07 05:25:14)
Offline
See this site to learn about the FlashObject way to put Flash on a page, why it's a better way to use Flash, and to also download the js file.
http://blog.deconcept.com/flashobject/
I use FlashObject exclusively now because I can:
Know the page follows Web standards and will also work for every browser and OS
Greatly simplify the code on the page to put Flash in
Reduce the chance of user error because now height, width, and file path are only needed once instead of twice
Have a single js file that controls how all my Flash is loaded onto pages, allowing me to introduce config paths, pass in hidden values, etc. by simply changing the one js file
Pass in values to the Flash movie easily using the modern flashvars method (which doesn't otherwise work in Xinha) instead of the old fashioned way (mymovie.swf?value1=3433&value2=sdfsdff etc.)
I can even make one Flash movie switch itself or other Flash movies on the page with other Flash movies by calling the javascript functions in a GetURL actionscript statement.
Last edited by mharrisonline (2006-04-07 05:44:22)
Offline
Ok thx, if my understanding is correct we can insert some clean html code using the flashobject to print some standard flash animation in the editor, but the sentence: Unfortunately, the out of the box Xinha can't handle the FlashEdit plugin. seems to show that it's impossible to let a flash button that open a browse flash animation such as for the one of the image... It is frustrating because in the flash plugin there are a page like a form to select an animation and a image button that seems to be exactly what I need...
I'll probably have to extends myself the xinha editor (already tried that but I can't print another thing than the <IMG > code in the editor from the javascript img Object(), even when creating an __insertFlash() function mapped on the __insertImage() function...)... actually I passed my flash animation as a extended picture and I would like to return the correct <OBJECT> code instead of the <IMG> one with a test on the format, but I don't know which string is returned...
Benjamin
Ps: i also noticed that when I insert the getHtml and FlashEdit plugins in the plugin directory the editor become readonly... is it a known bug or is it due to the weblogic integration of xinha
Offline
I know it was written "easily" in the topic title, maybe the second point of my previous reply was out of the scope
Benjamin
Offline
Hello there on Ticket #1095 I've posted an edited version of flashedit that should do everything you wanted (if you still want it - it is well over a year!). It's not fully tested, and once the flash doc is placed the editing is extremely dodgy at best, but it works ok.
Offline