The Coldfusion Open Source Forums
Home | ImageCFC | CFFM | BlogCFM | CFMBB | CFOpenMail / ImapCFC | CFOpenChat
Forums | Profile | Inbox | Members | Chat | Search | Login | RSS
Vivio Technologies CFML Hosting
New Topic Reply Subscription Options   Previous Page  Page: 1   Previous Page

Forums: CFFM: TinyMCE 3
Created on: 09/22/10 {ts '2013-05-24 12:40:00'} Views: 11912 Replies: 8
TinyMCE 3
Posted Wednesday, September 22, 2010 at {ts '2013-05-24 12:40:00'}

Has anyone gotten this to work w/ TinyMCE 3? I'd love to use it but I can't seem to get it to work. CFFM works because I can browse there directly, but when I'm in the Tinymce editor and pull up the advanced Image box, the browse button does not show.

RE: TinyMCE 3
Posted Wednesday, September 22, 2010 at {ts '2013-05-24 15:14:00'}

I'm sure someone has done it but I'd check the cf-talk list at houseoffusion and report back here, I don't think a lot of people follow these forums =) If I had a couple hours to spare I could probably figure it out but alas, that is not currently the case.

If you're feeling ambitious, you could start here:

http://wiki.moxiecode.com/index.php/TinyMCE:Custom_filebrowser

RE: TinyMCE 3
Posted Wednesday, September 22, 2010 at {ts '2013-05-24 18:14:00'}

Thanks! I already checked houseoffusion, moxiecode's site and some others. No luck. For now I'm just going with CKEditor and CKFinder, seems to do the trick. Although I live Tinymce so hopefully will find a solution. If I do I'll make sure i post an update here.

RE: TinyMCE 3
Posted Thursday, September 23, 2010 at {ts '2013-05-24 07:50:00'}

Don't you have to pay for CKFinder?

CFFM *does* work nicely with CKEditor....

RE: TinyMCE 3
Posted Thursday, September 23, 2010 at {ts '2013-05-24 08:28:00'}

also, you might want to follow this thread that I just posted. There are definately people out there who've done it.

http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:61974

RE: TinyMCE 3
Posted Thursday, September 23, 2010 at {ts '2013-05-24 11:35:00'}

Well they have a full working demo. So I can get it installed and working and then just pass the $50 on to my client. Considering my hourly rate is more, it would take me more time to trouble shoot other options then it would to just install something that works out of the box. Although, like I said if I can get it working w/ Tinymce in my spare time then I'm all over it! Smile

RE: TinyMCE 3
Posted Thursday, September 23, 2010 at {ts '2013-05-24 11:36:00'}

Thanks for starting that thread that would have been my next step. Smile

RE: TinyMCE 3
Posted Thursday, September 23, 2010 at {ts '2013-05-24 11:54:00'}

Hey Rick! That code worked perfectly! Smile

RE: TinyMCE 3
Posted Thursday, September 23, 2010 at {ts '2013-05-24 12:35:00'}

Great. That's actually what I meant by "checking" cf-talk =)

I'm going to re-post John's message right here:

Relevant JS looks like this:
   
function cffmCallback(field_name, url, type, win)
{
   // Do custom browser logic
   url =
   '#base#cffm.cfm?imagedir=#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]
});

New Topic Reply Subscription Options   Previous Page  Page: 1   Previous Page
Subscription Options
Subscription options are available after you log in.

There are 10 active user sessions right now.