| 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 - http://www.fckeditor.net | 
|---|
| 4 |  * Copyright (C) 2003-2007 Frederico Caldeira Knabben | 
|---|
| 5 |  * | 
|---|
| 6 |  * == BEGIN LICENSE == | 
|---|
| 7 |  * | 
|---|
| 8 |  * Licensed under the terms of any of the following licenses at your | 
|---|
| 9 |  * choice: | 
|---|
| 10 |  * | 
|---|
| 11 |  *  - GNU General Public License Version 2 or later (the "GPL") | 
|---|
| 12 |  *    http://www.gnu.org/licenses/gpl.html | 
|---|
| 13 |  * | 
|---|
| 14 |  *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL") | 
|---|
| 15 |  *    http://www.gnu.org/licenses/lgpl.html | 
|---|
| 16 |  * | 
|---|
| 17 |  *  - Mozilla Public License Version 1.1 or later (the "MPL") | 
|---|
| 18 |  *    http://www.mozilla.org/MPL/MPL-1.1.html | 
|---|
| 19 |  * | 
|---|
| 20 |  * == END LICENSE == | 
|---|
| 21 |  * | 
|---|
| 22 |  * Sample page. | 
|---|
| 23 | --> | 
|---|
| 24 | <html xmlns="http://www.w3.org/1999/xhtml"> | 
|---|
| 25 | <head> | 
|---|
| 26 |         <title>FCKeditor - Styletest</title> | 
|---|
| 27 |         <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | 
|---|
| 28 |         <meta name="robots" content="noindex, nofollow" /> | 
|---|
| 29 |         <link href="../sample.css" rel="stylesheet" type="text/css" /> | 
|---|
| 30 |         <script type="text/javascript" src="../../fckeditor.js"></script> | 
|---|
| 31 | </head> | 
|---|
| 32 | <body> | 
|---|
| 33 |         <h1> | 
|---|
| 34 |                 FCKeditor - JavaScript - Style test | 
|---|
| 35 |         </h1> | 
|---|
| 36 |         <div> | 
|---|
| 37 |                 This sample shows how FCKeditor handles paragraph styles defined with class names. | 
|---|
| 38 |         </div> | 
|---|
| 39 |         <hr /> | 
|---|
| 40 |         <form action="sampleposteddata.asp" method="post" target="_blank"> | 
|---|
| 41 |                 <script type="text/javascript"> | 
|---|
| 42 | <!-- | 
|---|
| 43 | // Automatically calculates the editor base path based on the _samples directory. | 
|---|
| 44 | // This is usefull only for these samples. A real application should use something like this: | 
|---|
| 45 | // oFCKeditor.BasePath = '/fckeditor/' ;        // '/fckeditor/' is the default value. | 
|---|
| 46 | var sBasePath = document.location.pathname.substring(0,document.location.pathname.lastIndexOf('_samples')) ; | 
|---|
| 47 |  | 
|---|
| 48 | var oFCKeditor = new FCKeditor( 'FCKeditor1' ) ; | 
|---|
| 49 | oFCKeditor.BasePath     = sBasePath ; | 
|---|
| 50 |  | 
|---|
| 51 | // Instruct the editor to load our configurations from a custom file, leaving the | 
|---|
| 52 | // original configuration file untouched. | 
|---|
| 53 | oFCKeditor.Config['CustomConfigurationsPath'] = sBasePath + '_samples/html/styletest.fromxml.config.js' ; | 
|---|
| 54 |  | 
|---|
| 55 | oFCKeditor.Height = 300 ; | 
|---|
| 56 | oFCKeditor.Value = '<p>This is some <span class="Bold">sample text<\/span>. You are using <a href="http://www.fckeditor.net/">FCKeditor<\/a>.<\/p>' ; | 
|---|
| 57 | oFCKeditor.Create() ; | 
|---|
| 58 | //--> | 
|---|
| 59 |                 </script> | 
|---|
| 60 |                 <br /> | 
|---|
| 61 |                 <input type="submit" value="Submit" /> | 
|---|
| 62 |         </form> | 
|---|
| 63 | </body> | 
|---|
| 64 | </html> | 
|---|