1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
---|
2 | <html xmlns="http://www.w3.org/1999/xhtml"> |
---|
3 | <head> |
---|
4 | <title>FCKeditor - Ticket #735</title> |
---|
5 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
---|
6 | <meta name="robots" content="noindex, nofollow" /> |
---|
7 | <link href="../sample.css" rel="stylesheet" type="text/css" /> |
---|
8 | <script type="text/javascript" src="../../fckeditor.js"></script> |
---|
9 | </head> |
---|
10 | <body> |
---|
11 | <h1> |
---|
12 | FCKeditor - JavaScript - Ticket #735</h1> |
---|
13 | <div> |
---|
14 | This is a reproduction of ticket #735 using the sample pages sample2 and sample 10. |
---|
15 | </div> |
---|
16 | <hr /> |
---|
17 | <div id="OutsideToolbar"></div> |
---|
18 | <hr /> |
---|
19 | <form> |
---|
20 | <br /> |
---|
21 | |
---|
22 | FCKeditor First instance: |
---|
23 | <script type="text/javascript"> |
---|
24 | |
---|
25 | var sBasePath = document.location.href.substring(0,document.location.href.lastIndexOf('_samples')) ; |
---|
26 | |
---|
27 | var oFCKeditor = new FCKeditor( 'FCKeditor_1' ) ; |
---|
28 | oFCKeditor.BasePath = sBasePath ; |
---|
29 | oFCKeditor.Height = 100 ; |
---|
30 | oFCKeditor.Config[ 'ToolbarLocation' ] = 'Out:OutsideToolbar' ; |
---|
31 | oFCKeditor.Value = '<p>This is the first instance<\/p>' ; |
---|
32 | oFCKeditor.Create() ; |
---|
33 | |
---|
34 | </script> |
---|
35 | <br /> |
---|
36 | FCKeditor Second instance: |
---|
37 | <script type="text/javascript"> |
---|
38 | |
---|
39 | oFCKeditor = new FCKeditor( 'FCKeditor_2' ) ; |
---|
40 | oFCKeditor.BasePath = sBasePath ; |
---|
41 | oFCKeditor.Height = 100 ; |
---|
42 | oFCKeditor.Config[ 'ToolbarLocation' ] = 'Out:OutsideToolbar' ; |
---|
43 | oFCKeditor.Value = '<p>This is the second instance. Everything works fine.<\/p>' ; |
---|
44 | oFCKeditor.Create() ; |
---|
45 | |
---|
46 | </script> |
---|
47 | </form> |
---|
48 | </body> |
---|
49 | </html> |
---|