53f8c7db8a4dbc1c9d99052a478c40d738a7341d.svn-base
2.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<!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-2012, 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" />
<script type="text/javascript" src="/fckeditor/fckeditor.js"></script>
<script type="text/javascript" src="../ckfinder.js"></script>
</head>
<body>
<h1 class="samples">
CKFinder - Sample - FCKeditor Integration
</h1>
<div class="description">
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.</div>
<p>
<script type="text/javascript">
// This is a check for the FCKeditor class. If not defined, the paths must be checked.
if ( typeof FCKeditor == 'undefined' )
{
document.write(
'<strong><span style="color: #ff0000">Error</span>: FCKeditor not found</strong>.' +
'This sample assumes that FCKeditor (not included with CKFinder) is installed in' +
'the "/fckeditor/" path. If you have it installed in a different place, just edit' +
'this file, changing the wrong paths in the <head> (line 5) and the "BasePath"' +
'value (line 32).' ) ;
}
else
{
var oFCKeditor = new FCKeditor( 'FCKeditor1' ) ;
oFCKeditor.BasePath = '/fckeditor/' ;
oFCKeditor.Value = '<p>Just click the <b>Image</b> or <b>Link</b> button, and then <b>"Browse Server"</b>.</p>' ;
// Just call CKFinder.setupFCKeditor before calling Create(), CreateHtml()
// or ReplaceTextarea() in FCKeditor. The second parameter (optional), is
// the path for the CKFinder installation (default = "/ckfinder/").
CKFinder.setupFCKeditor( oFCKeditor, '../' ) ;
// It is also possible to pass an object with selected CKFinder properties as a second argument.
// CKFinder.setupFCKeditor( oFCKeditor, { basePath : '../', skin : 'v1' } ) ;
oFCKeditor.Create() ;
}
</script>
</p>
<div id="footer">
<hr />
<p>
CKFinder - Ajax File Manager - <a class="samples" href="http://ckfinder.com/">http://ckfinder.com</a>
</p>
<p id="copy">
Copyright © 2003-2012, <a class="samples" href="http://cksource.com/">CKSource</a> - Frederico Knabben. All rights reserved.
</p>
</div>
</body>
</html>