1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
---|
2 | <!-- |
---|
3 | * FCKeditor - The text editor for internet |
---|
4 | * Copyright (C) 2003-2006 Frederico Caldeira Knabben |
---|
5 | * |
---|
6 | * Licensed under the terms of the GNU Lesser General Public License: |
---|
7 | * http://www.opensource.org/licenses/lgpl-license.php |
---|
8 | * |
---|
9 | * For further information visit: |
---|
10 | * http://www.fckeditor.net/ |
---|
11 | * |
---|
12 | * "Support Open Source software. What about a donation today?" |
---|
13 | * |
---|
14 | * File Name: sample06.html |
---|
15 | * Sample page. |
---|
16 | * |
---|
17 | * File Authors: |
---|
18 | * Frederico Caldeira Knabben (fredck@fckeditor.net) |
---|
19 | --> |
---|
20 | <html xmlns="http://www.w3.org/1999/xhtml"> |
---|
21 | <head> |
---|
22 | <title>FCKeditor - Sample</title> |
---|
23 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
---|
24 | <meta name="robots" content="noindex, nofollow" /> |
---|
25 | <link href="../sample.css" rel="stylesheet" type="text/css" /> |
---|
26 | <script type="text/javascript" src="../../fckeditor.js"></script> |
---|
27 | </head> |
---|
28 | <body> |
---|
29 | <h1> |
---|
30 | FCKeditor - JavaScript - 6</h1> |
---|
31 | <div> |
---|
32 | This sample shows some sample plugins implementations. Things to note:<br /> |
---|
33 | <ul> |
---|
34 | <li>In the toolbar, you will find sample "Find" and "Replace" plugins that do exactly |
---|
35 | the same thing that the built in ones do. It just shows how to do that with a custom |
---|
36 | implementation. Use the green toolbar buttons the test then. </li> |
---|
37 | <li>There is also another sample plugin that is available in the package: the "Placeholder" |
---|
38 | command (use the yellow icon). </li> |
---|
39 | <li>It also shows a custom context menu option when right cliking on images (insert |
---|
40 | a smiley to test it).</li> |
---|
41 | </ul> |
---|
42 | </div> |
---|
43 | <hr /> |
---|
44 | <form action="sampleposteddata.asp" method="post" target="_blank"> |
---|
45 | <script type="text/javascript"> |
---|
46 | <!-- |
---|
47 | // Automatically calculates the editor base path based on the _samples directory. |
---|
48 | // This is usefull only for these samples. A real application should use something like this: |
---|
49 | // oFCKeditor.BasePath = '/fckeditor/' ; // '/fckeditor/' is the default value. |
---|
50 | var sBasePath = document.location.pathname.substring(0,document.location.pathname.lastIndexOf('_samples')) ; |
---|
51 | |
---|
52 | var oFCKeditor = new FCKeditor( 'FCKeditor1' ) ; |
---|
53 | oFCKeditor.BasePath = sBasePath ; |
---|
54 | |
---|
55 | // Set the custom configurations file path (in this way the original file is mantained). |
---|
56 | oFCKeditor.Config['CustomConfigurationsPath'] = sBasePath + '_samples/html/sample06.config.js' ; |
---|
57 | |
---|
58 | // Let's use a custom toolbar for this sample. |
---|
59 | oFCKeditor.ToolbarSet = 'PluginTest' ; |
---|
60 | |
---|
61 | oFCKeditor.Value = 'This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.' ; |
---|
62 | oFCKeditor.Create() ; |
---|
63 | //--> |
---|
64 | </script> |
---|
65 | <br /> |
---|
66 | <input type="submit" value="Submit" /> |
---|
67 | </form> |
---|
68 | </body> |
---|
69 | </html> |
---|