[1257] | 1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
---|
| 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: 001.html |
---|
| 15 | * Test page. |
---|
| 16 | * |
---|
| 17 | * File Authors: |
---|
| 18 | * Frederico Caldeira Knabben (fredck@fckeditor.net) |
---|
| 19 | --> |
---|
| 20 | <html> |
---|
| 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="testcases.css" rel="stylesheet" type="text/css" /> |
---|
| 26 | <script type="text/javascript" src="../fckeditor.js"></script> |
---|
| 27 | <script> |
---|
| 28 | |
---|
| 29 | function SubmitForm() |
---|
| 30 | { |
---|
| 31 | document.forms[0].submit() ; |
---|
| 32 | } |
---|
| 33 | |
---|
| 34 | </script> |
---|
| 35 | </head> |
---|
| 36 | <body> |
---|
| 37 | <h1> |
---|
| 38 | FCKeditor - Test 001</h1> |
---|
| 39 | <p> |
---|
| 40 | <strong>Expected results</strong>: The editor content must be loaded and the submit |
---|
| 41 | button must post the editors html.<br> |
---|
| 42 | <strong>Configurations</strong>: Default<br> |
---|
| 43 | <strong>Steps to Reproduce</strong>: |
---|
| 44 | </p> |
---|
| 45 | <ol> |
---|
| 46 | <li>Wait the editor to load.</li> |
---|
| 47 | <li>Hit the "submit" button and check the posted data.</li> |
---|
| 48 | <li>Hit the "submit by code" button and check the posted data.</li> |
---|
| 49 | </ol> |
---|
| 50 | <p> |
---|
| 51 | <hr> |
---|
| 52 | </p> |
---|
| 53 | <form action="sampleposteddata.asp" method="post" target="_blank"> |
---|
| 54 | <script type="text/javascript"> |
---|
| 55 | <!-- |
---|
| 56 | // Automatically calculates the editor base path based on the _samples directory. |
---|
| 57 | // This is usefull only for these samples. A real application should use something like this: |
---|
| 58 | // oFCKeditor.BasePath = '/fckeditor/' ; // '/fckeditor/' is the default value. |
---|
| 59 | var sBasePath = document.location.pathname.substring(0,document.location.pathname.lastIndexOf('_testcases')) ; |
---|
| 60 | |
---|
| 61 | var oFCKeditor = new FCKeditor( 'FCKeditor1' ) ; |
---|
| 62 | oFCKeditor.BasePath = sBasePath ; |
---|
| 63 | oFCKeditor.Value = 'This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.' ; |
---|
| 64 | oFCKeditor.Create() ; |
---|
| 65 | //--> |
---|
| 66 | </script> |
---|
| 67 | <br> |
---|
| 68 | <input type="submit" value="Submit"> |
---|
| 69 | <input type="button" value="Submit by Code" onclick="SubmitForm();"> |
---|
| 70 | </form> |
---|
| 71 | </body> |
---|
| 72 | </html> |
---|