I sent this to Rick, but thought I'd post it here as well...
I just installed CFFM for the first time with tinyMCE. Tryin to figure out
where I'm goin wrong here...
Virtually everything works. If you browse for the file, the path shows up
correctly in the lil tinyMCEwindow.
/ncccfa/contentImages/CEBanner.jpg
Click insert. The image shows up in the editor, no problem.
But you view the source html and it inserted this:
<img src="../contentImages/CEBanner.jpg" alt="" />
I'ts like it's using a path that's relative to my text editor page. I'm
assuming I have a path setting wrong somewhere. I want it to just insert the
root relative path like it shows in the image window:
/contentImages/theimage.jpg
Here's my js (I'm using the built in server so I gotta put the REAL site root
in the front of the url):
function cffmCallback(field_name, url, type, win)
{
// Do custom browser logic
url =
'/ncccfa/backroom/cffm-1.17/cffm.cfm?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();
}
}
And in cffm.cfm
<cfinvokeargument name="includeDir"
value="#ExpandPath("/ncccfa/contentImages")#">
<!--- includeDirWeb = web path to the directory specified above. --->
<cfinvokeargument name="includeDirWeb" value="/ncccfa/contentImages">
Have any ideas?
Will
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
ColdFusion is delivering applications solutions at at top companies
around the world in government. Find out how and where now
http://www.adobe.com/cfusion/showcase/index.cfm?event=finder&productID=1522&loc=en_us
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291028
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4