| 1 | <html xmlns="http://www.w3.org/1999/xhtml"> |
|---|
| 2 | <head> |
|---|
| 3 | <title>Ticket #1017</title> |
|---|
| 4 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
|---|
| 5 | <meta name="robots" content="noindex, nofollow" /> |
|---|
| 6 | <link href="../sample.css" rel="stylesheet" type="text/css" /> |
|---|
| 7 | <script type="text/javascript" src="fckeditor/fckeditor.js"></script> |
|---|
| 8 | </head> |
|---|
| 9 | <body> |
|---|
| 10 | <h1> |
|---|
| 11 | Ticket 1017</h1> |
|---|
| 12 | |
|---|
| 13 | <hr /> |
|---|
| 14 | <div id="xToolbar"></div> |
|---|
| 15 | <hr /> |
|---|
| 16 | <script type="text/javascript"> |
|---|
| 17 | |
|---|
| 18 | var oFCKeditor = new FCKeditor( 'FCKeditor_1' ) ; |
|---|
| 19 | oFCKeditor.BasePath = "fckeditor/" ; |
|---|
| 20 | oFCKeditor.Height = 100 ; |
|---|
| 21 | oFCKeditor.Config[ 'ToolbarLocation' ] = 'Out:xToolbar' ; |
|---|
| 22 | oFCKeditor.ToolbarSet = 'Basic' ; |
|---|
| 23 | oFCKeditor.Value = '<p>This is some <strong>sample text<\/strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor<\/a>.<\/p>' ; |
|---|
| 24 | oFCKeditor.Create() ; |
|---|
| 25 | |
|---|
| 26 | |
|---|
| 27 | function tbBasic() |
|---|
| 28 | { |
|---|
| 29 | var oEditor = FCKeditorAPI.GetInstance('FCKeditor_1') ; |
|---|
| 30 | oEditor.ToolbarSet.Load( 'Basic' ) ; |
|---|
| 31 | } |
|---|
| 32 | |
|---|
| 33 | function tbDefault() |
|---|
| 34 | { |
|---|
| 35 | var oEditor = FCKeditorAPI.GetInstance('FCKeditor_1') ; |
|---|
| 36 | oEditor.ToolbarSet.Load( 'Default' ) ; |
|---|
| 37 | } |
|---|
| 38 | |
|---|
| 39 | </script> |
|---|
| 40 | |
|---|
| 41 | <br /> |
|---|
| 42 | <a href="javascript:void(0);" onclick="tbBasic();">Basic</a> |
|---|
| 43 | <a href="javascript:void(0);" onclick="tbDefault();">Default</a> |
|---|
| 44 | |
|---|
| 45 | </form> |
|---|
| 46 | </body> |
|---|
| 47 | </html> |
|---|