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 - http://www.fckeditor.net |
---|
4 | * Copyright (C) 2003-2007 Frederico Caldeira Knabben |
---|
5 | * |
---|
6 | * == BEGIN LICENSE == |
---|
7 | * |
---|
8 | * Licensed under the terms of any of the following licenses at your |
---|
9 | * choice: |
---|
10 | * |
---|
11 | * - GNU General Public License Version 2 or later (the "GPL") |
---|
12 | * http://www.gnu.org/licenses/gpl.html |
---|
13 | * |
---|
14 | * - GNU Lesser General Public License Version 2.1 or later (the "LGPL") |
---|
15 | * http://www.gnu.org/licenses/lgpl.html |
---|
16 | * |
---|
17 | * - Mozilla Public License Version 1.1 or later (the "MPL") |
---|
18 | * http://www.mozilla.org/MPL/MPL-1.1.html |
---|
19 | * |
---|
20 | * == END LICENSE == |
---|
21 | --> |
---|
22 | <html xmlns="http://www.w3.org/1999/xhtml" style="height: 100%"> |
---|
23 | <head> |
---|
24 | <title>Interactive test case for #2551</title> |
---|
25 | <script type="text/javascript" src="../../../../config.js"></script> |
---|
26 | <script type="text/javascript"> |
---|
27 | <!-- |
---|
28 | FCKTestUtils.LoadScript( "${EDITORPATH}/fckeditor.js" ) ; |
---|
29 | |
---|
30 | // Automatically calculates the editor base path based on the _samples directory. |
---|
31 | // This is usefull only for these samples. A real application should use something like this: |
---|
32 | // oFCKeditor.BasePath = '/fckeditor/' ; // '/fckeditor/' is the default value. |
---|
33 | var sBasePath = FCKTestConfig.EditorPath + '/' ; |
---|
34 | |
---|
35 | function makeInstance( name, height ) |
---|
36 | { |
---|
37 | var oFCKeditor = new FCKeditor( name ) ; |
---|
38 | oFCKeditor.BasePath = sBasePath ; |
---|
39 | oFCKeditor.Height = height ; |
---|
40 | oFCKeditor.Value = '<p>This is some <strong>sample text<\/strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor<\/a>.<\/p>' ; |
---|
41 | oFCKeditor.Create() ; |
---|
42 | } |
---|
43 | |
---|
44 | //--> |
---|
45 | </script> |
---|
46 | </head> |
---|
47 | <body style="height: 100%; margin: 0"> |
---|
48 | <div style="height: 100%; left: 0; overflow: hidden; position: relative; top: 0; width: 100%"> |
---|
49 | <div style="overflow: auto; position: relative; height: 100%"> |
---|
50 | <div> |
---|
51 | Scroll to the bottom of the page and open the font color and background color panels to see if the panels appear at the right place. |
---|
52 | </div> |
---|
53 | <hr /> |
---|
54 | <div style="position: absolute; top: 1500px;"> |
---|
55 | <div style="width: 500px; height: 400px;" id="editor1"> |
---|
56 | <script type="text/javascript"> |
---|
57 | makeInstance( 'editor1', 400 ); |
---|
58 | </script> |
---|
59 | </div> |
---|
60 | </div> |
---|
61 | </div> |
---|
62 | </div> |
---|
63 | </body> |
---|
64 | </html> |
---|