Hey John!
Thanks! Worked like a charm!!! :) 
Kelly

> Relevant JS looks like this:
> 
> function cffmCallback(field_name, url, type, win) {
   
> // Do custom browser logic
   
> url =
> '#base#cffm.
cfm?imaged> 
ir=#URLEncodedFormat(imagedir)#&editorType=mce&EDITOR_RESOURCE_TYPE='
> + type;
   
> x = 700; // width of window
   
> y = 500; // height of window
   
> win2 = win; // don't ask, it works.  win2 ends up being global to the
> page, while win is only accessible to the function.
   
> cffmWindow =
> window.open(url,"","width="+x+",height="+y+",left=20,top=20,
> bgcolor=white,resizable,scrollbars,menubar=0");
   
> if ( cffmWindow != null ) {
      
> // bring the window to the front
      
> cffmWindow.focus();
   
> }
> }
> 
> tinyMCE.init({
   
> [snip]
   
> file_browser_callback : "cffmCallback",
   
> [snip]
> });
> 
> On Thu, Sep 23, 2010 at 7:12 AM, Kym Kovan <[email protected]> 
> wrote:
> 
> >
> > On 23/09/2010 9:52 PM, Rick Root wrote:
> > >
> > > Anyone using a recent version of CFFM with TinyMCE 3?
> > >
> > > Before I spend my time figuring out how to do it, thought I'd ask 
> to
> > > see if anyone had already spent that time and might be willing to
> > > donate the knowledge to the project =)
> >
> > yes, it was not too hard.
> >
> > I haven't tried the latest cffm version yet but the previous two
> > versions went fine except for the issue with paths and the 
> uploadifyer
> > thingy in the last version.
> >
> > I don't have the code in front of me and its late evening here, 
> I'll
> > send it directly in the morning...
> >
> >
> > --
> >
> > Yours,
> >
> > Kym Kovan
> > mbcomms.net.au
> >
> >
> > 


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:337401
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to