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-2009 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 | * Sample Adobe AIR application.
|
---|
23 | -->
|
---|
24 | <html xmlns="http://www.w3.org/1999/xhtml">
|
---|
25 | <head>
|
---|
26 | <title>FCKeditor - Adobe AIR Sample</title>
|
---|
27 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
---|
28 | <meta name="robots" content="noindex, nofollow" />
|
---|
29 | <link href="../sample.css" rel="stylesheet" type="text/css" />
|
---|
30 | <script type="text/javascript" src="../../fckeditor.js"></script>
|
---|
31 | <style type="text/css">
|
---|
32 | body { margin: 10px ; }
|
---|
33 | </style>
|
---|
34 | </head>
|
---|
35 | <body>
|
---|
36 | <h1>
|
---|
37 | FCKeditor - Adobe AIR Sample
|
---|
38 | </h1>
|
---|
39 | <div>
|
---|
40 | This sample loads FCKeditor with full features enabled.
|
---|
41 | </div>
|
---|
42 | <hr />
|
---|
43 | <script type="text/javascript">
|
---|
44 |
|
---|
45 | // Automatically calculates the editor base path based on the _samples directory.
|
---|
46 | // This is usefull only for these samples. A real application should use something like this:
|
---|
47 | // oFCKeditor.BasePath = '/fckeditor/' ; // '/fckeditor/' is the default value.
|
---|
48 | var sBasePath = document.location.href.substring(0,document.location.href.lastIndexOf('_samples')) ;
|
---|
49 |
|
---|
50 | var oFCKeditor = new FCKeditor( 'FCKeditor1' ) ;
|
---|
51 | oFCKeditor.BasePath = sBasePath ;
|
---|
52 | oFCKeditor.Height = 400 ;
|
---|
53 | oFCKeditor.Value = '<p>FCKeditor is in the <strong>AIR</strong>!<\/p>' ;
|
---|
54 | oFCKeditor.Create() ;
|
---|
55 |
|
---|
56 | </script>
|
---|
57 | </body>
|
---|
58 | </html>
|
---|