<script type="text/javascript" src="ckfinder/ckfinder.js"></script>

<script type="text/javascript">
function BrowseServer( inputId )
{
var finder = new CKFinder() ;
finder.BasePath = 'ckfinder/' ; //导入CKFinder的路径
finder.SelectFunction = SetFileField ;
finder.SelectFunctionData = inputId ;
finder.Popup() ;
}
function SetFileField( fileUrl, data )
{
document.getElementById( data["selectFunctionData"] ).value = fileUrl ;
}
</script>
...
<p>
<strong>Selected File URL</strong><br/>
<input />
</p>

相关文章:

  • 2022-12-23
  • 2021-05-09
  • 2021-06-05
  • 2021-11-15
  • 2021-11-20
  • 2022-12-23
  • 2022-01-06
  • 2022-12-23
猜你喜欢
  • 2021-09-21
  • 2021-11-29
  • 2022-12-23
  • 2022-12-23
  • 2021-10-29
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案