[903] | 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: sample02.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 | <script type="text/javascript"> |
---|
| 28 | |
---|
| 29 | window.onload = function() |
---|
| 30 | { |
---|
| 31 | // Automatically calculates the editor base path based on the _samples directory. |
---|
| 32 | // This is usefull only for these samples. A real application should use something like this: |
---|
| 33 | // oFCKeditor.BasePath = '/fckeditor/' ; // '/fckeditor/' is the default value. |
---|
| 34 | var sBasePath = document.location.pathname.substring(0,document.location.pathname.lastIndexOf('_samples')) ; |
---|
| 35 | |
---|
| 36 | var oFCKeditor = new FCKeditor( 'FCKeditor1' ) ; |
---|
| 37 | oFCKeditor.BasePath = sBasePath ; |
---|
| 38 | oFCKeditor.ReplaceTextarea() ; |
---|
| 39 | } |
---|
| 40 | |
---|
| 41 | </script> |
---|
| 42 | </head> |
---|
| 43 | <body> |
---|
| 44 | <h1> |
---|
| 45 | FCKeditor - JavaScript - Sample 2</h1> |
---|
| 46 | <div> |
---|
| 47 | This sample displays a normal HTML form with an FCKeditor with full features enabled. |
---|
| 48 | It uses the "ReplaceTextarea" command to create the editor. |
---|
| 49 | </div> |
---|
| 50 | <hr /> |
---|
| 51 | <form action="sampleposteddata.asp" method="post" target="_blank"> |
---|
| 52 | <div> |
---|
| 53 | <textarea name="FCKeditor1" rows="10" cols="80" style="width: 100%; height: 200px">This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.</textarea> |
---|
| 54 | </div> |
---|
| 55 | <br /> |
---|
| 56 | <input type="submit" value="Submit" /> |
---|
| 57 | </form> |
---|
| 58 | </body> |
---|
| 59 | </html> |
---|