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 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
---|
5 | <script type="text/javascript" src="./2.6.3/fckeditor.js"></script> |
---|
6 | </head> |
---|
7 | <body> |
---|
8 | <h1> |
---|
9 | FCKeditor - JavaScript - Sample 8 |
---|
10 | </h1> |
---|
11 | <hr /> |
---|
12 | <form method="post" action="#"> |
---|
13 | <div id="div1" style="display:none"> |
---|
14 | <script type="text/javascript"> |
---|
15 | <!-- |
---|
16 | var sBasePath = "./2.6.3/"; |
---|
17 | |
---|
18 | var oFCKeditor = new FCKeditor( 'FCKeditor1' ) ; |
---|
19 | oFCKeditor.Config['StartupShowBlocks'] = true ; |
---|
20 | oFCKeditor.BasePath = sBasePath ; |
---|
21 | oFCKeditor.Height = 200 ; |
---|
22 | oFCKeditor.Value = '<p>This is some <strong>sample text<\/strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor<\/a>.<\/p>' ; |
---|
23 | oFCKeditor.Create() ; |
---|
24 | //--> |
---|
25 | </script> |
---|
26 | </div> |
---|
27 | </form> |
---|
28 | <input type="button" value="toogle visible" onclick="document.getElementById('div1').style.display='block'"> |
---|
29 | </body> |
---|
30 | </html> |
---|
31 | |
---|
32 | |
---|