PHP 8.1.33
Preview: fckeditor.php Size: 2.33 KB
/home/jambtst2015/public_html/ckfinder/_samples/php/fckeditor.php

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<!--

 * CKFinder

 * ========

 * http://ckfinder.com

 * Copyright (C) 2007-2011, CKSource - Frederico Knabben. All rights reserved.

 *

 * The software, this file and its contents are subject to the CKFinder

 * License. Please read the license.txt file before using, installing, copying,

 * modifying or distribute this file or part of its contents. The contents of

 * this file is part of the Source Code of CKFinder.

-->

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

	<title>CKFinder - Sample - FCKeditor Integration</title>

	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

	<meta name="robots" content="noindex, nofollow" />

	<link href="../sample.css" rel="stylesheet" type="text/css" />

</head>

<body>

	<h1>

		CKFinder - Sample - FCKeditor Integration

	</h1>

	<hr />

	<p>

		CKFinder can be easily integrated with FCKeditor. Try it now, by clicking

		the "Image" or "Link" icons and then the "<strong>Browse Server</strong>" button.</p>

	<p>

<?php



include_once '../../../fckeditor/fckeditor.php' ;

require_once '../../ckfinder.php' ;



// This is a check for the FCKeditor class. If not defined, the paths must be checked.

if ( !class_exists( 'FCKeditor' ) )

{

	echo

		'<br><strong><span class="error">Error</span>: FCKeditor not found</strong>. ' .

		'This sample assumes that FCKeditor (not included with CKFinder) is installed in ' .

		'the "fckeditor" sibling folder of the CKFinder installation folder. If you have it installed in ' .

		'a different place, just edit this file, changing the wrong paths in the include ' .

		'(line 31) and the "BasePath" values (line 47).' ;

}

else

{

	$fckeditor = new FCKeditor( 'FCKeditor1' ) ;

	$fckeditor->BasePath	= '../../../fckeditor/' ;

	$fckeditor->Value		= '<p>Just click the <b>Image</b> or <b>Link</b> button, and then <b>&quot;Browse Server&quot;</b>.</p>' ;



	// Just call CKFinder::SetupFCKeditor before calling Create() or CreateHtml()

	// in FCKeditor. The second parameter (optional), is the path for the

	// CKFinder installation (default = "/ckfinder/").

	CKFinder::SetupFCKeditor( $fckeditor, '../../' ) ;



	$fckeditor->Create() ;

}



?>

	</p>

</body>

</html>

Directory Contents

Dirs: 0 × Files: 6

Name Size Perms Modified Actions
3.08 KB lrw-r--r-- 2024-11-22 17:53:11
Edit Download
5.67 KB lrw-r--r-- 2025-11-03 06:42:00
Edit Download
2.33 KB lrw-r--r-- 2024-11-22 17:53:11
Edit Download
1.11 KB lrw-r--r-- 2024-11-22 17:53:11
Edit Download
1.13 KB lrw-r--r-- 2024-11-22 17:53:11
Edit Download
2.56 KB lrw-r--r-- 2024-11-22 17:53:11
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).