[1257] | 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: sample10.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 - Sample 10</h1> |
---|
| 31 | <div> |
---|
| 32 | This sample shows a form with two FCKeditor instance. Both instances share the same |
---|
| 33 | toolbar, available in the top. |
---|
| 34 | </div> |
---|
| 35 | <hr /> |
---|
| 36 | <div id="xToolbar"></div> |
---|
| 37 | <hr /> |
---|
| 38 | <form action="sampleposteddata.asp" method="post" target="_blank"> |
---|
| 39 | Normal text field:<br /> |
---|
| 40 | <input name="NormaText" value="Plain Text" /> |
---|
| 41 | <br /> |
---|
| 42 | <br /> |
---|
| 43 | FCKeditor 1: |
---|
| 44 | <script type="text/javascript"> |
---|
| 45 | <!-- |
---|
| 46 | // Automatically calculates the editor base path based on the _samples directory. |
---|
| 47 | // This is usefull only for these samples. A real application should use something like this: |
---|
| 48 | // oFCKeditor.BasePath = '/fckeditor/' ; // '/fckeditor/' is the default value. |
---|
| 49 | var sBasePath = document.location.pathname.substring(0,document.location.pathname.lastIndexOf('_samples')) ; |
---|
| 50 | |
---|
| 51 | var oFCKeditor = new FCKeditor( 'FCKeditor_1' ) ; |
---|
| 52 | oFCKeditor.BasePath = sBasePath ; |
---|
| 53 | oFCKeditor.Height = 100 ; |
---|
| 54 | oFCKeditor.Config[ 'ToolbarLocation' ] = 'Out:xToolbar' ; |
---|
| 55 | oFCKeditor.Value = 'This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.' ; |
---|
| 56 | oFCKeditor.Create() ; |
---|
| 57 | //--> |
---|
| 58 | </script> |
---|
| 59 | <br /> |
---|
| 60 | FCKeditor 2: |
---|
| 61 | <script type="text/javascript"> |
---|
| 62 | <!-- |
---|
| 63 | oFCKeditor = new FCKeditor( 'FCKeditor_2' ) ; |
---|
| 64 | oFCKeditor.BasePath = sBasePath ; |
---|
| 65 | oFCKeditor.Height = 100 ; |
---|
| 66 | oFCKeditor.Config[ 'ToolbarLocation' ] = 'Out:xToolbar' ; |
---|
| 67 | oFCKeditor.Value = 'This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.' ; |
---|
| 68 | oFCKeditor.Create() ; |
---|
| 69 | //--> |
---|
| 70 | </script> |
---|
| 71 | <br /> |
---|
| 72 | <input type="submit" value="Submit" /> |
---|
| 73 | </form> |
---|
| 74 | </body> |
---|
| 75 | </html> |
---|