[763] | 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: 005.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 | </head> |
---|
| 28 | <body> |
---|
| 29 | <h1>FCKeditor - Test 005</h1> |
---|
| 30 | <P> |
---|
| 31 | <STRONG>Expected results</STRONG>: The editor content must be loaded and the |
---|
| 32 | submit button must post the editors html. No javascript errors should be thrown |
---|
| 33 | (security errors).<BR> |
---|
| 34 | <STRONG>Configurations</STRONG>: BaseHref = http://www.fckeditor.net |
---|
| 35 | <BR> |
---|
| 36 | <STRONG>Steps to Reproduce</STRONG>: |
---|
| 37 | </P> |
---|
| 38 | <OL> |
---|
| 39 | <LI> |
---|
| 40 | Wait the editor to load. |
---|
| 41 | <LI> |
---|
| 42 | Create a table with border = |
---|
| 43 | 0 and an anchor. |
---|
| 44 | <LI>Create an image and points it to /images/logotop.gif |
---|
| 45 | <LI>Hit submit button and check the posted data.</LI></OL> |
---|
| 46 | <P> |
---|
| 47 | <hr> |
---|
| 48 | <P></P> |
---|
| 49 | <form action="sampleposteddata.asp" method="post" target="_blank"> |
---|
| 50 | <script type="text/javascript"> |
---|
| 51 | <!-- |
---|
| 52 | // Automatically calculates the editor base path based on the _samples directory. |
---|
| 53 | // This is usefull only for these samples. A real application should use something like this: |
---|
| 54 | // oFCKeditor.BasePath = '/fckeditor/' ; // '/fckeditor/' is the default value. |
---|
| 55 | var sBasePath = document.location.pathname.substring(0,document.location.pathname.lastIndexOf('_testcases')) ; |
---|
| 56 | |
---|
| 57 | var oFCKeditor = new FCKeditor( 'FCKeditor1' ) ; |
---|
| 58 | oFCKeditor.BasePath = sBasePath ; |
---|
| 59 | oFCKeditor.Config['BaseHref'] = 'http://www.fckeditor.net' ; |
---|
| 60 | oFCKeditor.Value = 'This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.' ; |
---|
| 61 | oFCKeditor.Create() ; |
---|
| 62 | //--> |
---|
| 63 | </script> |
---|
| 64 | <br> |
---|
| 65 | <input type="submit" value="Submit"> |
---|
| 66 | </form> |
---|
| 67 | </body> |
---|
| 68 | </html> |
---|