import rt 3.8.7
[freeside.git] / rt / share / html / NoAuth / RichText / FCKeditor / editor / plugins / bbcode / _sample / sample.html
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\r
2 <!--\r
3  * FCKeditor - The text editor for Internet - http://www.fckeditor.net\r
4  * Copyright (C) 2003-2009 Frederico Caldeira Knabben\r
5  *\r
6  * == BEGIN LICENSE ==\r
7  *\r
8  * Licensed under the terms of any of the following licenses at your\r
9  * choice:\r
10  *\r
11  *  - GNU General Public License Version 2 or later (the "GPL")\r
12  *    http://www.gnu.org/licenses/gpl.html\r
13  *\r
14  *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")\r
15  *    http://www.gnu.org/licenses/lgpl.html\r
16  *\r
17  *  - Mozilla Public License Version 1.1 or later (the "MPL")\r
18  *    http://www.mozilla.org/MPL/MPL-1.1.html\r
19  *\r
20  * == END LICENSE ==\r
21  *\r
22  * Sample page.\r
23 -->\r
24 <html xmlns="http://www.w3.org/1999/xhtml">\r
25 <head>\r
26         <title>FCKeditor - BBCode Sample</title>\r
27         <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />\r
28         <meta name="robots" content="noindex, nofollow" />\r
29         <link href="../../../../_samples/sample.css" rel="stylesheet" type="text/css" />\r
30         <script type="text/javascript" src="../../../../fckeditor.js"></script>\r
31 </head>\r
32 <body>\r
33         <h1>\r
34                 FCKeditor - BBCode Sample</h1>\r
35         <p>\r
36                 This is a sample of custom Data Processor implementation for (very) basic BBCode\r
37                 syntax. Only <strong>[b]</strong>, <strong>[i]</strong>, <strong>[u]</strong> and\r
38                 <strong>[url]</strong> may be used. It may be extended, but this is out of this\r
39                 sample purpose.\r
40         </p>\r
41         <p>\r
42                 Note that the input and output of the editor is not HTML, but BBCode\r
43         </p>\r
44         <hr />\r
45         <form action="../../../../_samples/html/sampleposteddata.asp" method="post" target="_blank">\r
46                 <script type="text/javascript">\r
47 <!--\r
48 // Automatically calculates the editor base path based on the _samples directory.\r
49 // This is usefull only for these samples. A real application should use something like this:\r
50 // oFCKeditor.BasePath = '/fckeditor/' ;        // '/fckeditor/' is the default value.\r
51 var sBasePath = document.location.pathname.substring(0,document.location.pathname.lastIndexOf('editor')) ;\r
52 \r
53 var oFCKeditor = new FCKeditor( 'FCKeditor1' ) ;\r
54 oFCKeditor.BasePath     = sBasePath ;\r
55 \r
56 // Set the custom configurations file path (in this way the original file is mantained).\r
57 oFCKeditor.Config['CustomConfigurationsPath'] = sBasePath + 'editor/plugins/bbcode/_sample/sample.config.js' ;\r
58 \r
59 oFCKeditor.Value = 'This is some [b]sample text[/b]. You are using [url=http://www.fckeditor.net/]FCKeditor[/url].' ;\r
60 oFCKeditor.Create() ;\r
61 //-->\r
62                 </script>\r
63                 <br />\r
64                 <input type="submit" value="Submit" />\r
65         </form>\r
66 </body>\r
67 </html>\r