The forum operates in read-only mode. Please head to StackOverflow for support.
<?php include("FCKeditor/fckeditor.php") ; ?> <html> <head> <title>FCKeditor - Sample</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <script language="JavaScript" src="pick.js" type="text/javascript"></script> </head> <body> <form action="check.php" method="post"> <?php $oFCKeditor = new FCKeditor('copy') ; $oFCKeditor->BasePath = '/Anglia/adminarea/FCKeditor/'; $oFCKeditor->Width = '600' ; $oFCKeditor->Height = '400' ; $oFCKeditor->Value = 'Default text in editor'; $oFCKeditor->Create() ; $sValue = stripslashes( $_POST['copy'] ) ; ?> <tr><td class="RowEven"><input type="text" name="Thumbnail" value="" size="32" id="Thumbnail"> <a onclick="BrowseServer('Thumbnail');"><img src="FCKeditor/editor/filemanager/browser/default/images/FolderOpened.gif" alt="open fle browser" width="16" height="16" border="0"/></a></td> </form> </body> </html>
// File Picker modification for FCK Editor v2.0 - www.fckeditor.net // by: Pete Forde <pete@unspace.ca> @ Unspace Interactive var urlobj; function BrowseServer(obj) { urlobj = obj; OpenServerBrowser( 'FCKeditor/editor/filemanager/browser/default/browser.html?Connector=connectors/php/connector.php', screen.width * 0.7, screen.height * 0.7 ) ; } function OpenServerBrowser( url, width, height ) { var iLeft = (screen.width - width) / 2 ; var iTop = (screen.height - height) / 2 ; var sOptions = "toolbar=no,status=no,resizable=yes,dependent=yes" ; sOptions += ",width=" + width ; sOptions += ",height=" + height ; sOptions += ",left=" + iLeft ; sOptions += ",top=" + iTop ; var oWindow = window.open( url, "BrowseWindow", sOptions ) ; } function SetUrl( url, width, height, alt ) { document.getElementById(urlobj).value = url ; oWindow = null; }
RE: Image-link in input form
did you solve the problem? I am searching also a solution for this problem.
Yours
Markus
RE: Image-link in input form
I am looking for the exact same solution, but still haven't found anythin.
Looking forward to finding the answer here some day soon.
Thanks.
Royend
RE: Image-link in input form
i wanna use the FCKfileeditor to select a Image and paste the URL to a single textfield.
RE: Image-link in input form
Re: Image-link in input form
<?php include("FCKeditor/fckeditor.php") ; ?> <html> <head> <title>FCKeditor - Sample</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <script language="JavaScript" src="pick.js" type="text/javascript"></script> </head> <body> <form action="check.php" method="post"> <?php $oFCKeditor = new FCKeditor('copy') ; $oFCKeditor->BasePath = '/Anglia/adminarea/FCKeditor/'; $oFCKeditor->Width = '600' ; $oFCKeditor->Height = '400' ; $oFCKeditor->Value = 'Default text in editor'; $oFCKeditor->Create() ; $sValue = stripslashes( $_POST['copy'] ) ; ?> <tr><td class="RowEven"><input type="text" name="Thumbnail" value="" size="32" id="Thumbnail"> <a onclick="BrowseServer('Thumbnail');"><img src="FCKeditor/editor/filemanager/browser/default/images/FolderOpened.gif" alt="open fle browser" width="16" height="16" border="0"/></a></td> </form> </body> </html>// File Picker modification for FCK Editor v2.0 - www.fckeditor.net // by: Pete Forde <pete@unspace.ca> @ Unspace Interactive var urlobj; function BrowseServer(obj) { urlobj = obj; OpenServerBrowser( 'FCKeditor/editor/filemanager/browser/default/browser.html?Connector=connectors/php/connector.php', screen.width * 0.7, screen.height * 0.7 ) ; } function OpenServerBrowser( url, width, height ) { var iLeft = (screen.width - width) / 2 ; var iTop = (screen.height - height) / 2 ; var sOptions = "toolbar=no,status=no,resizable=yes,dependent=yes" ; sOptions += ",width=" + width ; sOptions += ",height=" + height ; sOptions += ",left=" + iLeft ; sOptions += ",top=" + iTop ; var oWindow = window.open( url, "BrowseWindow", sOptions ) ; } function SetUrl( url, width, height, alt ) { document.getElementById(urlobj).value = url ; oWindow = null; }http://radziowi.webd.pl/anglia/