I have made a dialogbox, but how do insert it into the editor...
I have this script in the dialog.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html> <head> <title></title> <link rel="stylesheet" type="text/css" href="../scripts/WorkArea.css"> <META HTTP-EQUIV=PRAGMA CONTENT="NO-CACHE"> <SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript"> <!-- function insertLink(url) { var oName=dialogArguments.oUtil.oName; eval("dialogArguments."+oName).insertLink(url); parent.window.close(); } //--> </SCRIPT> </head> <body> <b><font face="Verdana" size="2"> Vlg en side eller en mappe:</font></b><br><br> <a href="javascript:insertLink('whois.asp')">Whois</a> </body> </html>
What I wanted was to mark som text in the fckeditor, and push the button, which brings up the dialogbox, and pick the link I made there, and it makes the text I have selected in the editor to a link. Is it possible....
The insertlink, you see is taken fra another cms.