magnusj Posted October 19, 2006 Posted October 19, 2006 Hi, I am trying to implement an internal linking thingie to the FCKeditor. Problem is I have no idea how to browse the database and retrieve a link from it. He he :rolleyes: I followed these instructions from the FCKeditor sourceforge forum: 1. Create your dialog that presents the links from the database using PHP. Lets assume you call it /linkbrowser.php 2. Edit fckconfig.js and change the "FCKConfig.LinkBrowserURL" line to: FCKConfig.LinkBrowserURL = "/linkbrowser.php" Now when inserting a link into the editor using the link dialog, you'll see a button that says "Browse Server". Clicking on it will bring up your special php page to enable you to select a database link. In your PHP page, you can pass the selected URL back to the hyperlink dialog with this line of javascript. window.top.opener.SetUrl( strURL ) ; So... I managed to get the first part working. When I hit "Browse" in the link dialog window my "Special php page" called linkbrowser.php opens as it should. The problem is I don?t know what that page is supposed to look like. How to code it to get it to retrieve links from the database and pass them to the link dialog. I really need some cut n?paste help here. Are you people good at this sort of thing? Can you help? Forever grateful! Magnus J
magnusj Posted November 15, 2006 Author Posted November 15, 2006 Hey, come on. Someone other than me must have a need for this, right? Comments, please!
magnusj Posted January 14, 2007 Author Posted January 14, 2007 Hi again. I thought I would give this another shot. Can anyone help me (and all osC users)? I mean, this would really make things easier for us all, would it not? MJ
magnusj Posted April 19, 2007 Author Posted April 19, 2007 Maybe someone could get this to work using the TinyMCE editor?
Recommended Posts
Archived
This topic is now archived and is closed to further replies.