Ticket #1017: TC_1017.html

File TC_1017.html, 1.3 KB (added by Wojciech Olchawa, 17 years ago)
Line 
1<html xmlns="http://www.w3.org/1999/xhtml">
2<head>
3        <title>Ticket #1017</title>
4        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5        <meta name="robots" content="noindex, nofollow" />
6        <link href="../sample.css" rel="stylesheet" type="text/css" />
7        <script type="text/javascript" src="fckeditor/fckeditor.js"></script>
8</head>
9<body>
10        <h1>
11                Ticket 1017</h1>
12       
13        <hr />
14        <div id="xToolbar"></div>
15        <hr />
16        <script type="text/javascript">
17       
18var oFCKeditor = new FCKeditor( 'FCKeditor_1' ) ;
19oFCKeditor.BasePath     = "fckeditor/" ;
20oFCKeditor.Height = 100 ;
21oFCKeditor.Config[ 'ToolbarLocation' ] = 'Out:xToolbar' ;
22oFCKeditor.ToolbarSet   = 'Basic' ;
23oFCKeditor.Value = '<p>This is some <strong>sample text<\/strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor<\/a>.<\/p>' ;
24oFCKeditor.Create() ;
25
26               
27function tbBasic()
28{
29  var oEditor = FCKeditorAPI.GetInstance('FCKeditor_1') ;
30  oEditor.ToolbarSet.Load( 'Basic' ) ;
31}
32
33function tbDefault()
34{
35  var oEditor = FCKeditorAPI.GetInstance('FCKeditor_1') ;
36  oEditor.ToolbarSet.Load( 'Default' ) ;
37  }
38
39  </script>
40
41  <br />
42        <a href="javascript:void(0);" onclick="tbBasic();">Basic</a>
43                <a href="javascript:void(0);" onclick="tbDefault();">Default</a>
44               
45        </form>
46</body>
47</html>
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy