[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: 006.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 006</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 thorwn |
---|
| 33 | (security errors).<BR> |
---|
| 34 | <STRONG>Configurations</STRONG>: BaseHref = http://www.fckeditor.net / FullPage |
---|
| 35 | = true |
---|
| 36 | <BR> |
---|
| 37 | <STRONG>Steps to Reproduce</STRONG>: |
---|
| 38 | </P> |
---|
| 39 | <OL> |
---|
| 40 | <LI> |
---|
| 41 | Wait the editor to load. |
---|
| 42 | <LI> |
---|
| 43 | Create a table with border = 0 and an anchor. |
---|
| 44 | <LI> |
---|
| 45 | Create an image and points it to /images/logotop.gif |
---|
| 46 | <LI> |
---|
| 47 | Paste the following CSS tag in the source: <link href="/css/main.css" type="text/css" rel="stylesheet" /> |
---|
| 48 | <LI> |
---|
| 49 | Check the WYSIWYG mode. |
---|
| 50 | <LI> |
---|
| 51 | Hit submit button and check the posted data.</LI></OL> |
---|
| 52 | <P> |
---|
| 53 | <hr> |
---|
| 54 | <P></P> |
---|
| 55 | <form action="sampleposteddata.asp" method="post" target="_blank"> |
---|
| 56 | <script type="text/javascript"> |
---|
| 57 | <!-- |
---|
| 58 | // Automatically calculates the editor base path based on the _samples directory. |
---|
| 59 | // This is usefull only for these samples. A real application should use something like this: |
---|
| 60 | // oFCKeditor.BasePath = '/fckeditor/' ; // '/fckeditor/' is the default value. |
---|
| 61 | var sBasePath = document.location.pathname.substring(0,document.location.pathname.lastIndexOf('_testcases')) ; |
---|
| 62 | |
---|
| 63 | var oFCKeditor = new FCKeditor( 'FCKeditor1' ) ; |
---|
| 64 | oFCKeditor.BasePath = sBasePath ; |
---|
| 65 | oFCKeditor.Config['FullPage'] = true ; |
---|
| 66 | oFCKeditor.Config['BaseHref'] = 'http://www.fckeditor.net' ; |
---|
| 67 | oFCKeditor.Value = '<html><head><title></title></head><body>This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.</body></html>' ; |
---|
| 68 | oFCKeditor.Create() ; |
---|
| 69 | //--> |
---|
| 70 | </script> |
---|
| 71 | <br> |
---|
| 72 | <input type="submit" value="Submit"> |
---|
| 73 | </form> |
---|
| 74 | </body> |
---|
| 75 | </html> |
---|